Documentation ¶
Overview ¶
Error struct and functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrWrapper ¶
type ErrWrapper struct {
// contains filtered or unexported fields
}
ErrWrapper implements error wrapper interface.
func Wrap ¶
func Wrap(code, text string, err error) *ErrWrapper
Wrap wraps given error into a new error with format.
func (*ErrWrapper) Unwrap ¶
func (e *ErrWrapper) Unwrap() error
Unwrap implements error unwrap interface.
func (*ErrWrapper) Wrap ¶
func (e *ErrWrapper) Wrap(err error) *ErrWrapper
Wrap implements error wrapper interface.
Click to show internal directories.
Click to hide internal directories.