JobException.java
735 Bytes
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
package com.yoho.kisjob.common.constant;
/**
* 任务异常
*
* @author zhangfeng
* @since 2016-07-13
*/
public class JobException extends RuntimeException {
private static final long serialVersionUID = 5594694361886303961L;
/**
* 支持错误码的异常 暂不启动
*
* @param errorCode
* 错误码
*/
@Deprecated
public JobException(int errorCode) {
super(String.valueOf(errorCode));
}
public JobException(String errorMsg) {
super(errorMsg);
}
public JobException(String errorMsgFromat, Object... args) {
this(String.format(errorMsgFromat, args));
}
public JobException(Throwable t) {
super(t);
}
public JobException(String errorMsg, Throwable t) {
super(errorMsg, t);
}
}