package
2.8.3
Repository: https://github.com/gogf/gf.git
Documentation: pkg.go.dev

# Functions

As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
Cause returns the root cause error of `err`.
Code returns the error code of `current error`.
Current creates and returns the current level error.
Equal reports whether current error `err` equals to error `target`.
HasCode checks and reports whether `err` has `code` in its chaining errors.
HasError performs as Is.
HasStack checks and reports whether `err` implemented interface `gerror.IStack`.
Is reports whether current error `err` has error `target` in its chaining errors.
New creates and returns an error which is formatted from given text.
NewCode creates and returns an error that has error code and given text.
NewCodef returns an error that has error code and formats as the given format and args.
NewCodeSkip creates and returns an error which has error code and is formatted from given text.
NewCodeSkipf returns an error that has error code and formats as the given format and args.
Newf returns an error that formats as the given format and args.
NewOption creates and returns a custom error with Option.
NewSkip creates and returns an error which is formatted from given text.
NewSkipf returns an error that formats as the given format and args.
NewWithOption creates and returns a custom error with Option.
Stack returns the stack callers as string.
Unwrap returns the next level error.
Wrap wraps error with text.
WrapCode wraps error with code and text.
WrapCodef wraps error with code and format specifier.
WrapCodeSkip wraps error with code and text.
WrapCodeSkipf wraps error with code and text that is formatted with given format and args.
Wrapf returns an error annotating err with a stack trace at the point Wrapf is called, and the format specifier.
WrapSkip wraps error with text.
WrapSkipf wraps error with text that is formatted with given format and args.

# Structs

Error is custom error for additional features.
Option is option for creating error.

# Interfaces

ICause is the interface for Cause feature.
ICode is the interface for Code feature.
ICurrent is the interface for Current feature.
IEqual is the interface for Equal feature.
IStack is the interface for Stack feature.
IUnwrap is the interface for Unwrap feature.