wuqiping
2021-03-03 c5175df9b49ae0a8b126f8e91fb4a39ce7d4915f
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.api.exception;
 
/**
 * @author
 * @site
 * @company
 * @create 2021-02-26 11:20
 */
public class BusinessException extends RuntimeException {
 
    /**
     * 错误码
     */
    private String code;
 
    /**
     * 错误信息
     */
    private String msg;
 
    /**  */
    private static final long serialVersionUID = 1L;
 
    public BusinessException() {
        super();
    }
 
    public BusinessException(String msg) {
        super(msg);
        this.msg = msg;
    }
 
    public BusinessException(Throwable t) {
        super(t);
    }
 
    public BusinessException(String msg, Throwable t) {
        super(msg);
        this.msg = msg;
    }
 
    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
 
    public BusinessException(String 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 String getCode() {
        return code;
    }
 
    /**
     * Getter method for property <tt>msg</tt>.
     *
     * @return property value of msg
     */
    public String getMsg() {
        return msg;
    }
 
}