Documentation ¶
Index ¶
- Variables
- func Cause(err error) error
- func Causes(err error) []error
- func Combine(errs ...error) error
- func Err(v interface{}) error
- func Errno(err error) error
- func Errorf(msg string, args ...interface{}) error
- func Fatal(err error) error
- func HasBrokenPipe(err error) bool
- func HasConnRefused(err error) bool
- func HasEOF(err error) bool
- func HasErrno(err error, errno syscall.Errno) bool
- func HasFileClosed(err error) bool
- func Is(typ string, err error) bool
- func IsFatal(err error) bool
- func IsTemporary(err error) bool
- func IsTimeout(err error) bool
- func New(msg string) error
- func RootCause(err error) error
- func WithMessage(err error, msg string) error
- func WithTags(err error, tags ...string) error
- func WithTypes(err error, types ...string) error
- func Wrap(err error, msg string) error
- func Wrapf(err error, msg string, args ...interface{}) error
- type ChainedErrors
- func (c *ChainedErrors) Append(s ...error) *ChainedErrors
- func (c *ChainedErrors) Close()
- func (c *ChainedErrors) Extend(s []error) *ChainedErrors
- func (c *ChainedErrors) Receive(ch <-chan error) *ChainedErrors
- func (c *ChainedErrors) Send(ch chan<- error)
- func (c *ChainedErrors) Sum() (s ErrorSlice)
- type ErrorSlice
- func (s ErrorSlice) Causes() []error
- func (s ErrorSlice) Empty() bool
- func (s ErrorSlice) Error() string
- func (s ErrorSlice) Format(f fmt.State, c rune)
- func (s ErrorSlice) Is(typ string) bool
- func (s ErrorSlice) With(msg string, types []string, tags ...string) (err error)
- func (s ErrorSlice) WithTags(tags ...string) error
- func (s ErrorSlice) WithTypes(types ...string) error
- func (s ErrorSlice) Wrap(msg string) error
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 HasBrokenPipe ¶
func HasConnRefused ¶
func HasFileClosed ¶
func IsTemporary ¶
func WithMessage ¶
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) 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
Click to show internal directories.
Click to hide internal directories.