Versions in this module Expand all Collapse all v0 v0.1.0 Jun 5, 2026 Changes in this version + const DefaultMaxStackDepth + var MaxStackDepth = DefaultMaxStackDepth + func Is(err, target error) bool + type Error interface + Cause func() error + Metadata func() *json.RawMessage + Prefix func() string + RuntimeStack func() []byte + SetMetadata func(*json.RawMessage) error + Stack func() []uintptr + StackFrames func() []StackFrame + Type func() string + UnmarshalMetadata func(target any) error + func Errorf(format string, a ...any) Error + func NewError(cause error) Error + func NewErrorf(format string, a ...any) Error + func ParsePanic(panicToParse string) (Error, error) + func Wrap(err error, stackToSkip int) Error + func WrapPrefix(err error, prefix string, skip int) Error + type ErrorSetter interface + SetMetadata func(*json.RawMessage) error + type Record struct + Cause string + Message string + Metadata *json.RawMessage + Prefix string + Stack []uintptr + StackFrames []StackFrame + Type string + type StackFrame struct + File string + LineNumber int + Name string + Package string + ProgramCounter uintptr + func NewStackFrame(pc uintptr) StackFrame + func (s *StackFrame) SourceLine() (string, error) + func (s StackFrame) Func() *runtime.Func + func (s StackFrame) String() string + type TraceError struct + func FromPanic(value any, stack []byte) *TraceError + func (e *TraceError) Cause() error + func (e *TraceError) Error() string + func (e *TraceError) Format(s fmt.State, verb rune) + func (e *TraceError) LogValue() slog.Value + func (e *TraceError) MarshalJSON() ([]byte, error) + func (e *TraceError) Metadata() *json.RawMessage + func (e *TraceError) Prefix() string + func (e *TraceError) Record() Record + func (e *TraceError) RuntimeStack() []byte + func (e *TraceError) SetMetadata(metadata *json.RawMessage) error + func (e *TraceError) Stack() []uintptr + func (e *TraceError) StackFrames() []StackFrame + func (e *TraceError) Type() string + func (e *TraceError) UnmarshalMetadata(target any) error + func (e *TraceError) Unwrap() error