io.github.dengchen2020.core.exception.BaseException Maven / Gradle / Ivy
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;
}
}