com.dahuatech.icc.multiinone.exception.BusinessException Maven / Gradle / Ivy
The newest version!
package com.dahuatech.icc.multiinone.exception;
/**
* 业务异常
*/
public class BusinessException extends RuntimeException{
public String code;
public String msg;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public BusinessException(String msg){
this.msg = msg;
}
public BusinessException(String code,String msg){
this.code = code;
this.msg = msg;
}
@Override
public String getMessage() {
return msg;
}
}