办学质量监测教学评价系统
ageerle
2025-03-04 d1b6a13a58afa4e03f4d6cb0a62cd759ccf306f4
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
package org.ruoyi.common.wechat.web.base;
 
import java.io.Serializable;
 
/**
 * 统一异常对象
 * @author WesleyOne
 * @create 2018/7/28
 */
public class BaseException extends Exception implements Serializable {
 
    private static final long serialVersionUID = 2007525058641283836L;
 
    private String code;
 
    public BaseException(String code, String msg) {
        super(msg);
        this.code = code;
 
    }
 
    public BaseException(BaseError baseError) {
        super(baseError.getMsg());
        this.code = baseError.getCode();
    }
 
    public BaseException(String msg) {
        super(msg);
        this.code = BaseError.NORMAL_ERR.getCode();
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
}