Documentation
¶
Overview ¶
Package xerrors provides utilities for error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recover ¶
Recover calls fn and returns a PanicError if fn panics.
If the panic originates directly within fn itself, it is not caught and propagates normally. This ensures that bugs in the engine's own closure logic are not silently swallowed.
func RecoverT ¶
RecoverT calls fn and returns a PanicError if fn panics.
If the panic originates directly within fn itself, it is not caught and propagates normally. This ensures that bugs in the engine's own closure logic are not silently swallowed.
Types ¶
type PanicError ¶
PanicError is an error that wraps a value recovered from a panic, along with the stack trace at the point of the panic.
func (PanicError) Error ¶
func (e PanicError) Error() string
func (PanicError) Unwrap ¶
func (e PanicError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.