P15GEN2\59518
2025-10-10 9f6890646993d16260d4201d613c092132856127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package foundation.exception;
 
public enum ExceptionEnum {
    
    Param_Error(100000000, "参数错误"),
    Param_Value_Error(100000001, "参数值不匹配"),
    Param_Type_Error(100000002, "参数类型不一致"),
 
    Auth_Error(300000000, "认证错误"),
    Auth_Login_Error(300000001, "登录失败"),
    
    DB_Error(400000000, "数据库错误"),
    DB_Index_Error(400000001, "数据库唯一性索引错误"),
 
    Business_Error(500000000, "业务异常"),
    Business_NoRecord_Error(500000001, "业务异常"),
    
    Server_Error(900000000, "服务器内部错误"),
    ;
    
    private int code;
    private String message;
    
    private ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
 
    public int getCode() {
        return code;
    }
 
    public String getMessage() {
        return message;
    }
}