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

io.github.dengchen2020.core.exception.BaseException Maven / Gradle / Ivy

There is a newer version: 0.0.28
Show newest version
package io.github.dengchen2020.core.exception;

/**
 * 异常基类
 *
 * @author dengchen
 * @since 2019/10/17 11:56
 */
public abstract class BaseException extends RuntimeException {

    private Integer code;

    public Integer getCode() {
        return code;
    }

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

    public BaseException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public BaseException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy