Documentation
¶
Index ¶
Constants ¶
View Source
const PREFIX = "uerrors"
Variables ¶
View Source
var ( /** * content in define */ ErrParamsNotMatch = NewCodeErrorWithPrefix(PREFIX, "000001") )
Functions ¶
This section is empty.
Types ¶
type CodeError ¶
type CodeError interface {
error
Code() string
Prefix() string
MsgBody() string
WithMsgBody(content string) CodeError
/**
* build err object
*/
Build(args ...string) CodeError
/**
* build err object
*/
BuildByMap(args map[string]interface{}) CodeError
}
type ValidatorError ¶
type ValidatorError interface {
CodeError
}
Click to show internal directories.
Click to hide internal directories.