errors

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessError added in v0.8.0

type AccessError struct {
	// contains filtered or unexported fields
}

func NewAccessError added in v0.8.0

func NewAccessError(key store.Key, verb string, err error) *AccessError

func (*AccessError) Error added in v0.8.0

func (o *AccessError) Error() string

Error returns an error string.

func (*AccessError) ID added in v0.8.0

func (o *AccessError) ID() string

ID returns the error unique ID.

func (*AccessError) Key added in v0.8.0

func (o *AccessError) Key() store.Key

Key returns the key for the error.

func (*AccessError) Timestamp added in v0.8.0

func (o *AccessError) Timestamp() time.Time

Timestamp returns the error timestamp.

func (*AccessError) Verb added in v0.8.0

func (o *AccessError) Verb() string

Verb returns the verb for the error.

type ActionError added in v0.8.0

type ActionError struct {
	// contains filtered or unexported fields
}

func NewActionError added in v0.8.0

func NewActionError(requestType string, payload action.Payload, err error) *ActionError

func (*ActionError) Error added in v0.8.0

func (o *ActionError) Error() string

Error returns an error string.

func (*ActionError) ID added in v0.8.0

func (o *ActionError) ID() string

ID returns the error unique ID.

func (*ActionError) Payload added in v0.8.0

func (o *ActionError) Payload() action.Payload

Request returns the payload that generated the error, if available.

func (*ActionError) RequestType added in v0.8.0

func (o *ActionError) RequestType() string

Client returns a client if one is available.

func (*ActionError) Timestamp added in v0.8.0

func (o *ActionError) Timestamp() time.Time

Timestamp returns the error timestamp.

type ErrorStore

type ErrorStore interface {
	List() []InternalError
	Get(string) (InternalError, bool)
	Add(InternalError) (found bool)
	AddError(error) InternalError
}

func NewErrorStore

func NewErrorStore() (ErrorStore, error)

NewErrorStore creates a new error store.

type GenericError added in v0.8.0

type GenericError struct {
	// contains filtered or unexported fields
}

func NewGenericError added in v0.8.0

func NewGenericError(err error) *GenericError

func (*GenericError) Error added in v0.8.0

func (o *GenericError) Error() string

Error returns an error string.

func (*GenericError) ID added in v0.8.0

func (o *GenericError) ID() string

ID returns the error unique ID.

func (*GenericError) Timestamp added in v0.8.0

func (o *GenericError) Timestamp() time.Time

Timestamp returns the error timestamp.

type InternalError

type InternalError interface {
	ID() string
	Error() string
	Timestamp() time.Time
}

InternalError represents an internal Octant error.

Jump to

Keyboard shortcuts

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