Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamsValidatorErrorCode = 1000 ParamsDealErrorCode = 1001 NotFindErrorCode = 1002 AuthorizeErrorCode = 1003 InternalServerErrorCode = 1004 RPCClientErrorCode = 1005 RPCServerErrorCode = 1006 AuthorizeTimeOutErrorCode = 1007 )
View Source
const (
DuplicateEntry = "Duplicate entry"
)
Variables ¶
View Source
var ( ParamsValidatorError = Err{Code: ParamsValidatorErrorCode} ParamsDealError = Err{Code: ParamsDealErrorCode} NotFindError = Err{Code: NotFindErrorCode} AuthorizeError = Err{Code: AuthorizeErrorCode} AuthorizeTimeOutError = Err{Code: AuthorizeErrorCode} InternalServerError = Err{Code: InternalServerErrorCode} RPCClientErrorCodeError = Err{Code: RPCClientErrorCode} RPCServerErrorCodeError = Err{Code: RPCServerErrorCode} )
控制器处理出错 错误码
View Source
var (
RecordNotFound = "record not found"
)
View Source
var UpdateFailure = Err{Msg: "更新失败"}
Functions ¶
func PrintError ¶
func PrintError(err error)
func SetCodeNameMap ¶ added in v1.3.2
Types ¶
Click to show internal directories.
Click to hide internal directories.