eerrors

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrQDisposed = errors.WithTypes(errors.New("queue: disposed"), "Disposed")

ErrQDisposed is returned when a queue is accessed after being disposed.

View Source
var ErrQEmpty = errors.New("queue: empty queue")

ErrQEmpty is returned when an non-applicable queue operation was called

View Source
var ErrQTimeout = errors.WithTypes(errors.New("queue: poll timed out"), "Timeout")

ErrQTimeout is returned by queues after the provided timeout is expired.

Functions

func Cause

func Cause(err error) error

func Causes

func Causes(err error) []error

func Combine

func Combine(errs ...error) error

func Err

func Err(v interface{}) error

func Errno

func Errno(err error) error

func Errorf

func Errorf(msg string, args ...interface{}) error

func Fatal

func Fatal(err error) error

func HasBrokenPipe

func HasBrokenPipe(err error) bool

func HasConnRefused

func HasConnRefused(err error) bool

func HasEOF

func HasEOF(err error) bool

func HasErrno

func HasErrno(err error, errno syscall.Errno) bool

func HasFileClosed

func HasFileClosed(err error) bool

func Is

func Is(typ string, err error) bool

func IsFatal

func IsFatal(err error) bool

func IsTemporary

func IsTemporary(err error) bool

func IsTimeout

func IsTimeout(err error) bool

func New

func New(msg string) error

func RootCause

func RootCause(err error) error

func WithMessage

func WithMessage(err error, msg string) error

func WithTags

func WithTags(err error, tags ...string) error

func WithTypes

func WithTypes(err error, types ...string) error

func Wrap

func Wrap(err error, msg string) error

func Wrapf

func Wrapf(err error, msg string, args ...interface{}) error

Types

type ChainedErrors

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

func ChainErrors

func ChainErrors() (c *ChainedErrors)

func (*ChainedErrors) Append

func (c *ChainedErrors) Append(s ...error) *ChainedErrors

func (*ChainedErrors) Close

func (c *ChainedErrors) Close()

func (*ChainedErrors) Extend

func (c *ChainedErrors) Extend(s []error) *ChainedErrors

func (*ChainedErrors) Receive

func (c *ChainedErrors) Receive(ch <-chan error) *ChainedErrors

func (*ChainedErrors) Send

func (c *ChainedErrors) Send(ch chan<- error)

func (*ChainedErrors) Sum

func (c *ChainedErrors) Sum() (s ErrorSlice)

type ErrorSlice

type ErrorSlice []error

func (ErrorSlice) Causes

func (s ErrorSlice) Causes() []error

func (ErrorSlice) Empty

func (s ErrorSlice) Empty() bool

func (ErrorSlice) Error

func (s ErrorSlice) Error() string

func (ErrorSlice) Format

func (s ErrorSlice) Format(f fmt.State, c rune)

func (ErrorSlice) Is

func (s ErrorSlice) Is(typ string) bool

func (ErrorSlice) With

func (s ErrorSlice) With(msg string, types []string, tags ...string) (err error)

func (ErrorSlice) WithTags

func (s ErrorSlice) WithTags(tags ...string) error

func (ErrorSlice) WithTypes

func (s ErrorSlice) WithTypes(types ...string) error

func (ErrorSlice) Wrap

func (s ErrorSlice) Wrap(msg string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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