All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chen.tools.base.LoginException Maven / Gradle / Ivy

Go to download

基于springboot框架,将redis、swagger、rabbitmq框架的基本配置整合在一起。 封装了开发常用的工具类,比如StringUtil DateUtil 等等 抽取出项目的返回格式,请求过滤器,异常拦截

The newest version!
package com.chen.tools.base;

/**
 * 登录异常
 *
 * @author chen
 **/
public class LoginException  extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 500;

    public LoginException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public LoginException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public LoginException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public LoginException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy