ErrorEnum.java
880 Bytes
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
37
38
39
40
41
42
43
44
45
package com.server.shiro.constants;
/**
 * Created by yinbinhome@163.com on 2018/2/23.
 * description:
 */
public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_501("501", "无登录信息,请重新登陆"),
    E_502("502", "权限不足"),
    E_503("503", "用户名或密码不正确"),
    E_504("504", "服务器内部错误");
    private String errorCode;
    private String errorMsg;
    ErrorEnum() {
    }
    ErrorEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    public String getErrorCode() {
        return errorCode;
    }
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
    public String getErrorMsg() {
        return errorMsg;
    }
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}