Documentation
¶
Index ¶
- Constants
- func Err(c *gin.Context, err error)
- type AppError
- func Config(message string, cause error) *AppError
- func Database(message string, cause error) *AppError
- func ErrInvalidArg(param string) *AppError
- func HTTP(message string, cause error) *AppError
- func New(errType, message string, cause error, code int) *AppError
- func WeChat(message string, cause error) *AppError
Constants ¶
View Source
const ( ErrTypeDatabase = "database" ErrTypeWeChat = "wechat" ErrTypeHTTP = "http" ErrTypeConfig = "config" ErrTypeInvalidArg = "invalid_argument" )
定义错误类型常量
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.