Documentation ¶
Overview ¶
Package errors provides error wrapping with location information
Index ¶
- Variables
- func As(err error, target any) bool
- func Format(format string, a ...any) error
- func Is(err error, target error) bool
- func Join(errs ...error) error
- func Log(log *slog.Logger, ctx context.Context, level slog.Level, err error, msg string, ...)
- func New(text string) error
- func NotImplemented() error
- func Unwrap(err error) error
- func Wrap(err error) error
- type ErrorAt
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.ErrUnsupported
ErrUnsupported is errors.ErrUnsupported
Functions ¶
func Format ¶ added in v0.96.0
Format calls fmt.Errorf(format, a...) then wraps the error with the source location of the caller.
func Log ¶
func Log(log *slog.Logger, ctx context.Context, level slog.Level, err error, msg string, args ...any)
Log logs err with Source location if Err is a ErrorAt
func NotImplemented ¶ added in v0.96.0
func NotImplemented() error
Types ¶
Click to show internal directories.
Click to hide internal directories.