com.founder.core.exception.BizException Maven / Gradle / Ivy
package com.founder.core.exception;
public class BizException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String err_msg;
private int infcode = -1;
public BizException(String msg) {
super(msg);
this.err_msg = msg;
}
public BizException(String msg, Throwable e) {
super(msg, e);
this.err_msg = msg;
}
public BizException(String msg, int code) {
super(msg);
this.err_msg = msg;
this.infcode = code;
}
public BizException(String msg, int code, Throwable e) {
super(msg, e);
this.err_msg = msg;
this.infcode = code;
}
public String getErr_msg() {
return err_msg;
}
public void setErr_msg(String err_msg) {
this.err_msg = err_msg;
}
public int getInfcode() {
return infcode;
}
public void setInfcode(int infcode) {
this.infcode = infcode;
}
}