Documentation ¶
Index ¶
- func Is(err error, code ...ErrCode) bool
- func New(code ErrCode, text string) error
- func Panic(err error)
- func Reuse(err error) error
- func SupText(err error, text string) errordeprecated
- func TryCatch(fn func() error) (err error)
- func Unwrap(err error, code ErrCode) (error, bool)
- func UnwrapErrors(err error) (errs []string)
- func With(err error, text string) error
- func Wrap(err error, code ErrCode, text string) error
- type ErrCode
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Panic ¶
func Panic(err error)
Panic if error is not nil, usually used in conjunction with TryCatch
func UnwrapErrors ¶
UnwrapErrors Returns the current all error text
Types ¶
type ErrCode ¶
type ErrCode int32
ErrCode error code type
func UnwrapCode ¶
UnwrapCode Returns the current error code
func UnwrapCodes ¶
UnwrapCodes Returns the current all error code
Click to show internal directories.
Click to hide internal directories.