gongchunyi
2 天以前 e9b4ceeea014f9d81263672f3d9c46a567c39591
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
package com.ruoyi.energymeter.provider;
 
/**
 * 第三方接口调用异常,携带可入库的脱敏错误类别。
 */
public class MeterProviderException extends RuntimeException {
 
    private static final long serialVersionUID = 1L;
 
    private final String code;
 
    public MeterProviderException(String code, String message) {
        super(message);
        this.code = code;
    }
 
    public MeterProviderException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
 
    public String getCode() {
        return code;
    }
}