package jnpf.workflow.common.exception;
|
|
import lombok.Getter;
|
|
@Getter
|
public class BizException extends RuntimeException {
|
|
public ResultCode resultCode;
|
|
public BizException(ResultCode errorCode) {
|
super(errorCode.getMsg());
|
this.resultCode = errorCode;
|
}
|
|
public BizException(String message) {
|
super(message);
|
this.resultCode = ResultCode.SYSTEM_EXECUTION_ERROR;
|
}
|
|
public BizException(String message, Throwable cause) {
|
super(message, cause);
|
this.resultCode = ResultCode.SYSTEM_EXECUTION_ERROR;
|
}
|
|
public BizException(Throwable cause) {
|
super(cause);
|
this.resultCode = ResultCode.SYSTEM_EXECUTION_ERROR;
|
}
|
}
|