package com.stylefeng.guns.rest.common.exception;

/**
 * 所有业务异常的枚举
 *
 * @author fengshuonan
 * @date 2016年11月12日 下午5:04:51
 */
public enum BizExceptionEnum {

    AUTH_REQUEST_ERROR(400,"账号密码错误"),
    TOKEN_ERROR(700, "token验证失败"),
    SIGN_ERROR(700, "签名验证失败"),
    TOKEN_EXPIRED(700, "token过期");

    BizExceptionEnum(int code, String message) {
        this.friendlyCode = code;
        this.friendlyMsg = message;
    }

    private int friendlyCode;

    private String friendlyMsg;

    public int getCode() {
        return friendlyCode;
    }

    public void setCode(int code) {
        this.friendlyCode = code;
    }

    public String getMessage() {
        return friendlyMsg;
    }

    public void setMessage(String message) {
        this.friendlyMsg = message;
    }

}
