Versions in this module Expand all Collapse all v0 v0.1.0 Jul 25, 2026 Changes in this version + func CodeOf(err error) string + func Errorf(format string, args ...any) error + func New(msg string, attrs ...Attr) error + func NewPanic(rec any, attrs ...Attr) error + func PublicOf(err error) string + func StatusOf(err error) int + func Wrap(err error, msg string, attrs ...Attr) error + func Wrapf(err error, format string, args ...any) error + type Attr func(*Error) + func Code(code string) Attr + func Public(msg string) Attr + func Status(status int) Attr + func With(key string, value any) Attr + type Definition struct + func Define(code string, attrs ...Attr) *Definition + func (d *Definition) Error() string + func (d *Definition) New(msg string, attrs ...Attr) error + func (d *Definition) Newf(format string, args ...any) error + func (d *Definition) Wrap(err error, msg string, attrs ...Attr) error + func (d *Definition) Wrapf(err error, format string, args ...any) error + type Error struct + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) LogValue() slog.Value + func (e *Error) StackTrace() []uintptr + func (e *Error) Unwrap() error + type Frame struct + File string + Function string + Line int + func Frames(err error) []Frame + func FullFrames(err error) []Frame + type Step struct + Code string + File string + Function string + Line int + Meta map[string]any + Msg string + func Chain(err error) []Step