hxb
2024-02-23 a6c0ac0f20d1d91fbe1fe591a6a9ca46f82399f5
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
package com.hdl.linkpm.sdk.core.exception;
 
import androidx.annotation.NonNull;
 
/**
 * Created by Tong on 2021/11/11.
 */
public class HDLLinkCopyException extends RuntimeException {
 
    private int code = 0;
    private String msg = "";
    private Throwable rawThrowable;
 
    public HDLLinkCopyException() {
    }
 
    public HDLLinkCopyException(String msg) {
        this.msg = msg;
    }
 
    public HDLLinkCopyException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public HDLLinkCopyException(int code) {
        this.code = code;
    }
 
    public HDLLinkCopyException(Throwable rawThrowable) {
        this.rawThrowable = rawThrowable;
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public @NonNull
    String getMsg() {
        return msg;
    }
 
    public void setMsg(String msg) {
        this.msg = msg;
    }
 
    public Throwable getRawThrowable() {
        return rawThrowable;
    }
 
    public void setRawThrowable(Throwable rawThrowable) {
        this.rawThrowable = rawThrowable;
    }
 
    public static HDLLinkCopyException getErrorWithCode(int code, String msg){
        return new HDLLinkCopyException(code,msg);
    }
}