chenjiahe
2021-10-21 6c1bfcd25d3bafcdf2765c5c9d0709a8f423eac4
提交 | 用户 | 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
10     private String code;
11
12     public PlatTipsException( String code,String message) {
13         super(message);
14         this.code = code;
15     }
16
17     public PlatTipsException( String code,String message, Throwable cause) {
18         super(message, cause);
19         this.code = code;
20     }
21
22     public PlatTipsException(String code,Throwable cause) {
23         super(cause);
24         this.code = code;
25     }
26
27
28
29     public String getCode() {
30         return code;
31     }
32
33     public void setCode(String code) {
34         this.code = code;
35     }
36 }