Documentation ¶
Index ¶
Constants ¶
const ( // ParamFormatErr for wrong param format ParamFormatErr = 998 // InternalErr for internal error code InternalErr = 999 // NoErr for successful request NoErr = 1000 )
Variables ¶
var ApplyMessageIDRangeOversize = NewBizErr("apply message id range oversize", applyMessageIDRangeOversize)
ApplyMessageIDRangeOversize error for oversize message id range application
var CanNotCreateMoreQueue = NewBizErr("can not create more queues", canNotCreateMoreQueue)
CanNotCreateMoreQueue can not create more queues
var DataNotFound = NewBizErr("data is not found", dataNotFound)
DataNotFound error for data not found
var DuplicateMessage = NewBizErr("duplicate message", duplicateUser)
DuplicateMessage error for duplicate message
var DuplicateQueue = NewBizErr("duplicate queue", duplicateMessage)
DuplicateQueue error for duplicate queue
var DuplicateSquad = NewBizErr("duplicate squad", duplicateSquad)
DuplicateSquad error for duplicate squad
var DuplicateUser = NewBizErr("duplicate user", duplicateMessage)
DuplicateUser error for duplicate user
var MessageIndexOutOfRange = NewBizErr("message index is out of range", messageIndexOutOfRange)
MessageIndexOutOfRange error for out-of-range message index
var MessageOutOfDate = NewBizErr("message is out of date", messageOutOfData)
MessageOutOfDate error for out-of-date message
var NotSQSStargazer = NewBizErr("Not a github.com/Focinfi/gosqs stargazer", notSQSStargazer)
NotSQSStargazer not a sqs stargazer on github
var QueueNotFound = NewBizErr("queue not found", queueNotFound)
QueueNotFound error for unknown queue
var ServiceOverload = NewBizErr("node is overload", serviceOverload)
ServiceOverload error for node is overload
var UserNotFound = NewBizErr("user not found", userNotFound)
UserNotFound error for unknown user
Functions ¶
func DataBroken ¶
DataBroken returns a internal error for broken data
func FailedEncoding ¶
func FailedEncoding(data interface{}) error
FailedEncoding returns a internal error for encoding error
Types ¶
type Biz ¶
Biz detects the biz errors
func UserAuthError ¶
UserAuthError for error of authentication for user
type Internal ¶
type Internal interface { error // contains filtered or unexported methods }
Internal detects the internal errors
func DBQueryTimeout ¶
DBQueryTimeout returns a Internal for a db query
func NewInternalErrorf ¶
NewInternalErrorf returns a new internalErr
func NewInternalWrap ¶
NewInternalWrap returns a new internalErr