com.swak.frame.exception.BizException Maven / Gradle / Ivy
package com.swak.frame.exception;
import com.swak.frame.enums.BasicErrCode;
import com.swak.frame.enums.IResultCode;
import com.swak.frame.exception.core.BaseException;
/**
* BizException is known Exception, no need retry
*/
public class BizException extends BaseException {
private static final long serialVersionUID = 1L;
public BizException(String errMessage){
super(errMessage);
this.setErrCode(BasicErrCode.BIZ_ERROR);
}
public BizException(IResultCode errCode, String errMessage){
super(errMessage);
this.setErrCode(errCode);
}
public BizException(String errMessage, Throwable e) {
super(errMessage, e);
this.setErrCode(BasicErrCode.BIZ_ERROR);
}
}