郑永安
2023-06-19 59e91a4e9ddaf23cebb12993c774aa899ab22d16
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
package com.gk.firework.Domain.Exception;
 
public class BusinessException extends RuntimeException{
    private String code;
    private String error;
 
    public BusinessException(String message) {
        super(message);
    }
 
 
    public BusinessException(String code, String error) {
        super(error);
        this.code = code;
        this.error = error;
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public String getError() {
        return error;
    }
 
    public void setError(String error) {
        this.error = error;
    }
}