Documentation
¶
Index ¶
- Constants
- func As(err error, target any) bool
- func ErrNilPointerValue() error
- func ErrZeroSizeValue() error
- func GetDelimiter() string
- func Is(err, target error) bool
- func New(s string) error
- func SetDelimiter(s string)
- func Unwrap(err error) error
- func WrapErr(s string, w error) error
- func WrapStr(s, w string) error
- type Wrapper
Constants ¶
View Source
const ( ErrNilPointerValueMsg = "nil pointer value" ErrZeroSizeValueMsg = "zero size value" )
Variables ¶
This section is empty.
Functions ¶
func ErrNilPointerValue ¶
func ErrNilPointerValue() error
func ErrZeroSizeValue ¶
func ErrZeroSizeValue() error
func GetDelimiter ¶
func GetDelimiter() string
GetDelimiter returns current use delimiter chars for wrap errors.
func SetDelimiter ¶
func SetDelimiter(s string)
SetDelimiter sets new delimiter chars to use for wrap errors.
func Unwrap ¶
Unwrap wraps function errors.Unwrap to avoid import errors package from standard library.
Types ¶
Click to show internal directories.
Click to hide internal directories.