Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TcpSuccess = 0 Success = 200 BadRequest = 400 Forbidden = 403 NotFound = 404 SystemError = 500 ParameterError = 600 DBError = 701 CacheError = 702 UnknownError = "unknown error" ErrMap = map[int]string{ TcpSuccess: "ok", Success: "ok", BadRequest: "bad request", Unauthorized: "Unauthorized", Forbidden: "Forbidden", NotFound: "not found", SystemError: "system error", ParameterError: "Parameter error", DBError: "db error", CacheError: "cache error", } )
Functions ¶
func GetErrorType ¶
Types ¶
type CodeError ¶
type CodeError struct {
// contains filtered or unexported fields
}
func MakeCodeError ¶
func NewCodeError ¶
func SetCodeType ¶
Click to show internal directories.
Click to hide internal directories.