Documentation
¶
Overview ¶
Package errtrace provides error wrapping with stack trace capture.
Index ¶
- func Errorf(format string, args ...interface{}) error
- func IsError(err error, target error) bool
- func New(err error) error
- func PrintErrorWithEncoder(err error, encoder func(v interface{}) error)
- func Recover(r interface{}) error
- func WithStackTrace(err error) error
- func WithStackTraceAndPrefix(err error, format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintErrorWithEncoder ¶
PrintErrorWithEncoder prints an error using the given encoder.
func Recover ¶
func Recover(r interface{}) error
Recover creates an error from a recovered panic value.
func WithStackTrace ¶
WithStackTrace wraps an error with stack trace information.
func WithStackTraceAndPrefix ¶
WithStackTraceAndPrefix wraps an error with a formatted message prefix and stack trace.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.