Documentation ¶
Index ¶
Constants ¶
View Source
const BeDisplayedErrorCode = 2000 //错误信息可以显示给用户
View Source
const ConflictErrorCode = 1106 //有冲突
View Source
const NormalErrorCode = 1000 //通常错误
View Source
const OutOfRange = 1105 //超出范围
View Source
const SensitiveErrorCode = 1001 //此类错误信息一般不对外暴露,可能会有一些敏感数据
View Source
const TooFrequentErrCode = 1010 //操作太频繁
View Source
const UnLoggedErrorCode = 1103 //未登录
Variables ¶
This section is empty.
Functions ¶
func StackError ¶
func StackError(err interface{}, params ...interface{}) error
会跟踪error的调用位置; err只接收字符串和error类型; params可传Code以及msg,注意:会覆盖前面的
Types ¶
Click to show internal directories.
Click to hide internal directories.