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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| package cn.gistack.system.user.sync.exception;
|
| /**
| * @author wd
| */
| public class BusinessException extends RuntimeException {
|
| private static final long serialVersionUID = -1660410201568475030L;
|
| private Integer errCode;
|
| private String errMsg;
|
| public BusinessException(ErrorCode err) {
| super(err.msg);
| this.errCode = err.code;
| this.errMsg = err.msg;
| }
|
| public BusinessException(Integer errCode, String errMsg) {
| super(errMsg);
| this.errCode = errCode;
| this.errMsg = errMsg;
| }
|
| public BusinessException(ErrorCode err, String errMsg) {
| super(errMsg);
| this.errCode = err.code;
| this.errMsg = errMsg;
| }
|
| public BusinessException(Integer errCode, String errMsg, Throwable cause) {
| super(errMsg, cause);
| this.errCode = errCode;
| this.errMsg = errMsg;
| }
|
| public Integer getErrCode() {
| return errCode;
| }
|
| public String getErrMsg() {
| return errMsg;
| }
| }
|
|