提交 | 用户 | age
|
6c1bfc
|
1 |
package com.platform.exception; |
C |
2 |
|
|
3 |
/** |
|
4 |
* 前端提示异常 |
|
5 |
* @author ChenJiaHe |
|
6 |
* @Date 2021-10-20 |
|
7 |
*/ |
|
8 |
public class PlatTipsException extends RuntimeException { |
|
9 |
|
3e7377
|
10 |
/**总编码*/ |
6c1bfc
|
11 |
private String code; |
3e7377
|
12 |
/**子编码*/ |
C |
13 |
private String subCode = "100"; |
6c1bfc
|
14 |
|
C |
15 |
public PlatTipsException( String code,String message) { |
|
16 |
super(message); |
|
17 |
this.code = code; |
|
18 |
} |
|
19 |
|
3e7377
|
20 |
public PlatTipsException( String code,String subCode,String message) { |
C |
21 |
super(message); |
|
22 |
this.code = code; |
|
23 |
this.subCode = subCode; |
|
24 |
} |
|
25 |
|
6c1bfc
|
26 |
public PlatTipsException( String code,String message, Throwable cause) { |
C |
27 |
super(message, cause); |
|
28 |
this.code = code; |
3e7377
|
29 |
} |
C |
30 |
|
|
31 |
public PlatTipsException( String code,String subCode,String message, Throwable cause) { |
|
32 |
super(message, cause); |
|
33 |
this.code = code; |
|
34 |
this.subCode = subCode; |
6c1bfc
|
35 |
} |
C |
36 |
|
|
37 |
public PlatTipsException(String code,Throwable cause) { |
|
38 |
super(cause); |
|
39 |
this.code = code; |
|
40 |
} |
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
public String getCode() { |
|
45 |
return code; |
|
46 |
} |
|
47 |
|
|
48 |
public void setCode(String code) { |
|
49 |
this.code = code; |
|
50 |
} |
3e7377
|
51 |
|
C |
52 |
public String getSubCode() { |
|
53 |
return subCode; |
|
54 |
} |
|
55 |
|
|
56 |
public void setSubCode(String subCode) { |
|
57 |
this.subCode = subCode; |
|
58 |
} |
6c1bfc
|
59 |
} |