Documentation
¶
Overview ¶
Package errorx provides frequently used error constructs in API development, with context
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E ¶
type E struct {
Code string `json:"code"`
Message string `json:"message"`
// contains filtered or unexported fields
}
E defines common error information for inspecting and displaying to various format
func Wrap ¶
Wrap returns an error annotating err with a stack trace at the point Wrap is called, and the supplied message. If err is nil, Wrap returns nil.
func Wrapf ¶
Wrapf returns an error annotating err with a stack trace at the point Wrapf is called, and the format specifier. If err is nil, Wrapf returns nil.
Click to show internal directories.
Click to hide internal directories.