errors

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const OctantAccessError = "AccessError"
View Source
const OctantActionError = "ActionError"

Variables

This section is empty.

Functions

func IsBackoffError added in v0.10.1

func IsBackoffError(err error) bool

func NewErrorStore

func NewErrorStore() (errors.ErrorStore, error)

NewErrorStore creates a new error store.

Types

type AccessError

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

func NewAccessError

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

func (*AccessError) Error

func (o *AccessError) Error() string

Error returns an error string.

func (*AccessError) ID

func (o *AccessError) ID() string

ID returns the error unique ID.

func (*AccessError) Key

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

Key returns the key for the error.

func (*AccessError) Name added in v0.10.1

func (o *AccessError) Name() string

func (*AccessError) Timestamp

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

Timestamp returns the error timestamp.

func (*AccessError) Verb

func (o *AccessError) Verb() string

Verb returns the verb for the error.

type ActionError

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

func NewActionError

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

func (*ActionError) Error

func (o *ActionError) Error() string

Error returns an error string.

func (*ActionError) ID

func (o *ActionError) ID() string

ID returns the error unique ID.

func (*ActionError) Name added in v0.10.1

func (o *ActionError) Name() string

func (*ActionError) Payload

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

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

func (*ActionError) RequestType

func (o *ActionError) RequestType() string

Client returns a client if one is available.

func (*ActionError) Timestamp

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

Timestamp returns the error timestamp.

type InternalError

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

InternalError represents an internal Octant error.

Jump to

Keyboard shortcuts

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