hxb
2022-11-22 b3513b1713bb979d0a69c5a8c4ddcd038f184e6e
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
/**
 * Exception style class encapsulating Business errors
 */
package com.mm.android.deviceaddmodule.mobilecommon.AppConsume;
 
 
@SuppressWarnings("serial")
public class BusinessException extends Exception{
    /**
     * 执行错误码
     */
    public int errorCode = 1;
 
    /**
     * 错误描述
     */
    public String errorDescription = "UNKNOWN_ERROR";
    
    public BusinessException(){
        
    }
    
    public BusinessException(String e) {
        super(e);
        this.errorDescription =e;
    }
 
    public BusinessException(Throwable cause) {
        super(cause);
        this.errorDescription =cause.getMessage();
    }
 
    public BusinessException(int errorCode) {
        this.errorCode = errorCode;
    }
 
}