Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERROR = Exception{1, "ERROR", ""} // 系统异常 RunTimeException = Exception{2, "RunTimeException", ""} // 运行时异常 NotFoundException = Exception{3, "NotFoundException", ""} // 不存在异常 UnsupportedException = Exception{4, "UnsupportedException", ""} // 不支持 IllegalParameterException = Exception{5, "IllegalParameterException", ""} // 非法参数 EmptyException = Exception{6, "EmptyException", ""} // 空集合异常 NilException = Exception{7, "NilException", ""} // 控制正异常 DateTimeFormatException = Exception{8, "DateTimeFormatException", ""} // 日期格式化异常 JsonParseException = Exception{9, "JsonParseException", ""} // JSON解析异常 ParamsParseException = Exception{10, "ParamsParseException", ""} // 参数解析异常 ValidationException = Exception{11, "ValidationException", ""} // 参数校验异常 FileToMaxException = Exception{12, "FileToMaxException", ""} // 文件过大 SQLException = Exception{101, "SQLException", ""} // sql 执行异常 MongoException = Exception{102, "MongoException", ""} // mongodb 执行异常 RedisException = Exception{103, "RedisException", ""} // redis 执行异常 RabbitException = Exception{104, "RabbitException", ""} // rabbit 执行异常 )
Functions ¶
func IsMException ¶
func NewErrorEx ¶
func NewException ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.