BizException.java
1.38 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.zteits.oa.api.base.exception;
import com.zteits.oa.api.base.bean.ErrorCode;
import com.zteits.oa.api.base.constants.ErrorType;
/**
*
*
* Copyright: Copyright (c) 2017 zteits
*
* @ClassName: BizException.java
* @Description:
* @version: v1.0.0
* @author: liuzl
* @date: 2017年4月24日 下午4:54:54
* Modification History:
* Date Author Version Description
*---------------------------------------------------------*
* 2017年4月24日 liuzl v1.0.0 创建
*
* 业务异常
*/
public class BizException extends AppException{
private static final long serialVersionUID = 1L;
/**
* 无参构造函数
*/
public BizException() {
super();
}
public BizException(ErrorType errorType) {
super(errorType);
}
public BizException(ErrorCode errorCode, String ... errMsg) {
super(errorCode, errMsg);
}
/**
* 封装异常
* @param errorCode
* @param errMsg
* @param isTransfer 是否转换异常信息,如果为false,则直接使用errMsg信息
*/
public BizException(ErrorCode errorCode, String errMsg,Boolean isTransfer) {
super(errorCode, errMsg,isTransfer);
}
public BizException(ErrorType errorType, String ... errMsg) {
super(errorType, errMsg);
}
public BizException(ErrorType errCode, Throwable cause,String ... errMsg) {
super(errCode,cause, errMsg);
}
}