ErrorEnum.java 880 Bytes
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;
    }
}