Documentation
¶
Overview ¶
Package errors wraps pkg/errors and includes some custom features such as error codes.
Index ¶
- func As(err error, target interface{}) bool
- func Cause(err error) error
- func Errorf(format string, args ...interface{}) error
- func Is(err error, target Code) bool
- func New(code Code, message string) error
- func Unwrap(err error) error
- func WithMessage(err error, message string) error
- func WithMessagef(err error, format string, args ...interface{}) error
- func WithStack(err error) error
- func Wrap(err error, message string) error
- func Wrapf(err error, fmt string, args ...interface{}) error
- type Code
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is is a fork of the Is() method from `pkg/errors` which takes as its target an error Code instead of an error.
func WithMessage ¶
func WithMessagef ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.