errors

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const StreamingConnectionError = "StreamingConnectionError"

Variables

View Source
var OctantGenericError = "GenericError"

Functions

func IsFatalStreamError

func IsFatalStreamError(err error) bool

Types

type ErrorStore

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

type GenericError

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

func NewGenericError

func NewGenericError(err error) *GenericError

func (*GenericError) Error

func (o *GenericError) Error() string

Error returns an error string.

func (*GenericError) ID

func (o *GenericError) ID() string

ID returns the error unique ID.

func (*GenericError) Name

func (o *GenericError) Name() string

func (*GenericError) Timestamp

func (o *GenericError) 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.

type StreamError

type StreamError struct {
	*GenericError
	Fatal bool
}

func FatalStreamError

func FatalStreamError(err error) *StreamError

func NewStreamError

func NewStreamError(err error) *StreamError

func (*StreamError) Name

func (s *StreamError) Name() string

Jump to

Keyboard shortcuts

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