刘光辉
昨天 bb638871a7fb692d80f1b7a758f991dc0879002c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
    }
}