Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // base error OK = New(0, "success") RequestErr = New(10400, "request error") InvalidSignErr = New(10401, "invalid sign") InvalidAppidErr = New(10402, "invalid appid") InvalidTokenErr = New(10403, "invalid token") NothingFound = New(10404, "nothing found") ServerErr = New(10500, "server error") )
Functions ¶
This section is empty.
Types ¶
type Codes ¶
type Codes interface { // sometimes Error return Code in string form Error() string // Code get error code. Code() int // Message get code message. Message() string }
Codes ecode error interface which has a code & message.
Click to show internal directories.
Click to hide internal directories.