errors

package
v1.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors implements various error types that are used both internally, and that may be returned from the client interface.

Errors returned by the client that are not covered by these errors can be considered as general internal failures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicIfErrored added in v1.7.4

func PanicIfErrored(err error, msgformat string, args ...interface{})

PanicIfErrored logs and panics if the supplied error is non-nil.

func UpdateErrorIdentifier added in v1.5.0

func UpdateErrorIdentifier(err error, id interface{}) error

UpdateErrorIdentifier modifies the supplied error to use the new resource identifier.

Types

type ErrorConnectionUnauthorized

type ErrorConnectionUnauthorized struct {
	Err error
}

Error indicating a problem connecting to the backend.

func (ErrorConnectionUnauthorized) Error

type ErrorDatastoreError

type ErrorDatastoreError struct {
	Err        error
	Identifier interface{}
}

Error indicating a problem connecting to the backend.

func (ErrorDatastoreError) Error

func (e ErrorDatastoreError) Error() string

type ErrorInsufficientIdentifiers

type ErrorInsufficientIdentifiers struct {
	Name string
}

Error indicating insufficient identifiers have been supplied on a resource management request (create, apply, update, get, delete).

func (ErrorInsufficientIdentifiers) Error

type ErrorOperationNotSupported

type ErrorOperationNotSupported struct {
	Operation  string
	Identifier interface{}
	Reason     string
}

Error indicating an operation is not supported.

func (ErrorOperationNotSupported) Error

type ErrorParsingDatastoreEntry added in v1.7.4

type ErrorParsingDatastoreEntry struct {
	RawKey   string
	RawValue string
	Err      error
}

Error indicating the datastore has failed to parse an entry.

func (ErrorParsingDatastoreEntry) Error added in v1.7.4

type ErrorPartialFailure added in v1.7.4

type ErrorPartialFailure struct {
	Err error
}

Error indicating that the operation may have partially succeeded, then failed, without rolling back. A common example is when a function failed in an acceptable way after it succesfully wrote some data to the datastore.

func (ErrorPartialFailure) Error added in v1.7.4

func (e ErrorPartialFailure) Error() string

type ErrorResourceAlreadyExists

type ErrorResourceAlreadyExists struct {
	Err        error
	Identifier interface{}
}

Error indicating a resource already exists. Used when attempting to create a resource that already exists.

func (ErrorResourceAlreadyExists) Error

type ErrorResourceDoesNotExist

type ErrorResourceDoesNotExist struct {
	Err        error
	Identifier interface{}
}

Error indicating a resource does not exist. Used when attempting to delete or udpate a non-existent resource.

func (ErrorResourceDoesNotExist) Error

type ErrorResourceUpdateConflict

type ErrorResourceUpdateConflict struct {
	Err        error
	Identifier interface{}
}

Error indicating an atomic update attempt that failed due to a update conflict.

func (ErrorResourceUpdateConflict) Error

type ErrorValidation

type ErrorValidation struct {
	ErroredFields []ErroredField
}

Validation error containing the fields that are failed validation.

func (ErrorValidation) Error

func (e ErrorValidation) Error() string

type ErrorWatchTerminated added in v1.7.4

type ErrorWatchTerminated struct {
	Err            error
	ClosedByRemote bool
}

Error indicating the watcher has been terminated.

func (ErrorWatchTerminated) Error added in v1.7.4

func (e ErrorWatchTerminated) Error() string

type ErroredField

type ErroredField struct {
	Name   string
	Value  interface{}
	Reason string
}

func (ErroredField) String added in v1.7.4

func (e ErroredField) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL