Documentation
¶
Index ¶
- func As(err error, target any) bool
- func GetCaller(err error) (string, int, string, error)
- func GetCode(err error) codes.Code
- func Is(err error, target error) bool
- func NewWithCode(code codes.Code, msg string, val ...interface{}) error
- func WrapWithCode(err error, code codes.Code, msg string, val ...interface{}) error
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func As ¶
Implement golang errors.As, finds the first error in err's chain that matches target, and if one is found, sets target to that error value and returns true
Types ¶
Click to show internal directories.
Click to hide internal directories.