Documentation ¶
Index ¶
- func As(err error, target interface{}) bool
- func Errorf(format string, a ...any) error
- func ErrorfWithSkip(skip int, format string, a ...any) error
- func Is(e error, original error) bool
- func New(text string) error
- func NewSentinelError(text string) error
- func Unwrap(err error) error
- func Wrap(err error) error
- func WrapWithSkip(err error, skip int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Is ¶
Is detects whether the error is equal to a given error. Errors are considered equal by this function if they are matched by errors.Is or if their contained errors are matched through errors.Is
func NewSentinelError ¶
func WrapWithSkip ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.