Documentation
¶
Overview ¶
Package errors provides helpers for creating, wrapping, and inspecting errors using the standard library errors and fmt packages.
Index ¶
- Variables
- func As(err error, target any) bool
- func AsType[E error](err error) (E, bool)
- func Errorf(format string, args ...any) error
- func Is(err, target error) bool
- func Join(errs ...error) error
- func New(text string) error
- func Unwrap(err error) error
- func WithMessage(err error, message string) error
- func WithMessagef(err error, format string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = stderrors.ErrUnsupported
ErrUnsupported indicates that an operation is not supported.
Functions ¶
func WithMessage ¶
WithMessage wraps err with message using standard error wrapping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.