常见的通用异常

常见的通用异常整理:

ABSENCE_PARAMETER(601, "缺少必填参数"),
ILLEGAL_PARAMETER(602, "参数不合法"),
REQUEST_FORBIDDEN(603, "请求被禁止"),
RECORD_EXIST(604, "存在重复的数据"),
RECORD_NOT_EXIST(605, "数据不存在"),
REQUEST_TOO_FREQUENT(606, "请求太频繁"),
METHOD_NOT_FOUND(609, "方法没找到"),
SING_UNVALID(900, "数字签名错误"),
SERVICE_ERROR(999, "服务器错误"),
IMPORT_ERROR(1000, "服务器错误"),
UNAUTHORIZED_ERROR(401, "无访问权限"),
FORBIDDEN(403, "无权限访问"),
UC_ERROR(500, "用户服务异常"),
ERROR_STATUS(10000, "数据状态错误"),
NOT_NULL(610, "数据为空"),
IS_USED(611, "数据使用中,无法删除"),
BACKTIME_LESSTHAN_RECEIVETIME(2010, "归还时间应该大于最后一次收货时间"),
BACKTIME_LESSTHAN_LASTRECEIVETIME(2011, "归还时间应该大于上一次归还时间"),
EXECUTION_FAILED(611, "执行失败");

你可能感兴趣的:(测试)