errors

package
v0.0.0-...-389e7ce Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorStore

type ErrorStore interface {
	List() []*InternalError
	Get(uuid.UUID) (*InternalError, bool)
	Add(*InternalError)
	NewError(string, action.Payload, error) *InternalError
}

func NewErrorStore

func NewErrorStore() (ErrorStore, error)

type InternalError

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

func NewInternalError

func NewInternalError(requestType string, payload action.Payload, err error) *InternalError

func (*InternalError) Error

func (o *InternalError) Error() string

Error returns an error string.

func (*InternalError) Payload

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

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

func (*InternalError) RequestType

func (o *InternalError) RequestType() string

Client returns a client if one is available.

Jump to

Keyboard shortcuts

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