提交 | 用户 | age
|
6c1bfc
|
1 |
package com.platform.exception; |
C |
2 |
|
|
3 |
/** 判断异常/业务异常 |
|
4 |
* @author ChenJiaHe |
|
5 |
* @Date 2021-10-20 |
|
6 |
*/ |
|
7 |
public class PlatServiceException extends RuntimeException { |
|
8 |
|
|
9 |
private String code; |
|
10 |
|
|
11 |
public PlatServiceException(String code,String message) { |
|
12 |
super(message); |
|
13 |
this.code = code; |
|
14 |
} |
|
15 |
|
|
16 |
public PlatServiceException( String code,String message, Throwable cause) { |
|
17 |
super(message, cause); |
|
18 |
this.code = code; |
|
19 |
} |
|
20 |
|
|
21 |
public PlatServiceException( String code,Throwable cause) { |
|
22 |
super(cause); |
|
23 |
this.code = code; |
|
24 |
} |
|
25 |
|
|
26 |
public String getCode() { |
|
27 |
return code; |
|
28 |
} |
|
29 |
|
|
30 |
public void setCode(String code) { |
|
31 |
this.code = code; |
|
32 |
} |
|
33 |
} |