lyfO_o
2021-03-31 a9e0d22a72501f56b1084d0e6e8dccf0166e3250
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.nanometer.smartlab.exception;
 
public class BusinessException extends RuntimeException {
 
    private ExceptionEnumCode error;
 
    public BusinessException(ExceptionEnumCode error, String message, Exception ex) {
        super(message, ex);
        this.error = error;
    }
 
    public BusinessException(ExceptionEnumCode error, String message) {
        super(message);
        this.error = error;
    }
 
    public BusinessException(ExceptionEnumCode error) {
        super(error.getCode());
        this.error = error;
    }
 
    public ExceptionEnumCode getErrorCode() {
        return error;
    }
}