jinpengyong
2023-09-05 8ec7046779aa7ae510cbb584fbaa87cc45cfc49b
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
61
62
63
64
65
66
67
68
69
70
71
72
package com.moral.exception;
 
/**
 * @ClassName TokenException
 * @Description Token异常
 * @Author 陈凯裕
 * @Date 2021/3/11 14:54
 * @Version TODO
 **/
public class TokenException extends RuntimeException {
 
    /**
     * 错误码
     */
    private int code;
 
    /**
     * 错误信息
     */
    private String msg;
 
    /**  */
    private static final long serialVersionUID = 1L;
 
    public TokenException() {
        super();
    }
 
    public TokenException(String msg) {
        super(msg);
        this.msg = msg;
    }
 
    public TokenException(Throwable t) {
        super(t);
    }
 
    public TokenException(String msg, Throwable t) {
        super(msg);
        this.msg = msg;
    }
 
    public TokenException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
 
    public TokenException(int code, String msg, Throwable t) {
        super(msg, t);
        this.code = code;
        this.msg = msg;
    }
 
    /**
     * Getter method for property <tt>code</tt>.
     *
     * @return property value of code
     */
    public int getCode() {
        return code;
    }
 
    /**
     * Getter method for property <tt>msg</tt>.
     *
     * @return property value of msg
     */
    public String getMsg() {
        return msg;
    }
}