Versions in this module Expand all Collapse all v0 v0.0.2 Aug 25, 2026 v0.0.1 Aug 14, 2026 Changes in this version + func ToMap(err error) map[string]any + func ToSlogAttr(err error) slog.Attr + func ToSlogAttrs(err error) []slog.Attr + func UnwrapErr(err error) error + func UnwrapErrs(err error) []error + type ErrDefinition struct + Attrs map[string]string + Code string + Instance func() string + Kind string + Message string + func NewErrDefinition(code, kind, message string, attrs map[string]string, instance func() string) *ErrDefinition + func (d *ErrDefinition) Instanciated(err error) bool + func (d *ErrDefinition) New(cause error, values ...any) *ErrInstance + func (d *ErrDefinition) NewStack(cause error, values ...any) *ErrInstance + type ErrInstance struct + Attrs map[string]string + Cause error + Code string + Frames []Frame + Instance string + Kind string + Message string + func (e *ErrInstance) Error() string + func (e *ErrInstance) Is(err error) bool + func (e *ErrInstance) Map() map[string]any + func (e *ErrInstance) SlogAttr() slog.Attr + func (e *ErrInstance) SlogAttrs() []slog.Attr + func (e *ErrInstance) Unwrap() error + type Error struct + Cause error + Detail string + Message string + func NewError(cause error, message, detail string, a ...any) *Error + func (e *Error) Error() string + func (e *Error) Is(err error) bool + func (e *Error) Map() map[string]any + func (e *Error) SlogAttr() slog.Attr + func (e *Error) SlogAttrs() []slog.Attr + func (e *Error) Unwrap() error + type Frame struct + File string + Func string + Line int + Pkg string + func (f *Frame) String() string