Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OK = Int(0) ParamErr = Int(499) ServerErr = Int(500) )
Functions ¶
Types ¶
type Code ¶
type Code int
A Code is an int error code spec.
func Error ¶
Error returns a ecode.Codes and register associated ecode message NOTE: Error codes and messages should be kept together. ecode must unique in global, the Error will check repeat and then panic.
Click to show internal directories.
Click to hide internal directories.