Documentation ¶
Index ¶
- type BusinessError
- func New(Key string) BusinessError
- func WithDetail(Key string, detail interface{}, err error) BusinessError
- func WithErr(Key string, err error) BusinessError
- func WithMap(Key string, maps map[string]interface{}, err error) BusinessError
- func WithName(Key string, name string) BusinessError
- func WithNameAndErr(Key string, name string, err error) BusinessError
- type MultiErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusinessError ¶
func New ¶
func New(Key string) BusinessError
func WithDetail ¶
func WithDetail(Key string, detail interface{}, err error) BusinessError
func WithErr ¶
func WithErr(Key string, err error) BusinessError
func WithName ¶ added in v1.8.0
func WithName(Key string, name string) BusinessError
func WithNameAndErr ¶ added in v1.5.1
func WithNameAndErr(Key string, name string, err error) BusinessError
func (BusinessError) Error ¶
func (e BusinessError) Error() string
Click to show internal directories.
Click to hide internal directories.