Documentation
¶
Index ¶
- Variables
- func As(err error, target any) bool
- func AsType[T error](err error) (T, bool)
- func Errors(err error) []error
- func Is(err, target error) bool
- func Join(errs ...error) error
- func New(text string) error
- func StackTraces(err error) stackTraces
- func Unwrap(err error) error
- func WithStack(err error) error
- type Frame
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxStackDepth = 50
MaxStackDepth is the maximum depth of the stack trace.
Functions ¶
func AsType ¶ added in v1.2.0
AsType is a polyfill for errors.AsType (available since Go 1.26).
func StackTraces ¶
func StackTraces(err error) stackTraces
StackTraces returns the stack traces of the given error(s).
Types ¶
Click to show internal directories.
Click to hide internal directories.