Fixiaobai
2023-11-17 2fb28b36f15de26249ae34160e1accf118c011c7
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.chinaztt.mes.common.util.easyexcel.exception;
 
import com.chinaztt.mes.common.util.easyexcel.ResponseResultEnum;
import lombok.Getter;
 
/**
 * excel全局异常
 * @auther Zou, Yu
 * @create 2023-9-24
 */
@Getter
public class ExcelException extends RuntimeException {
 
    private Integer status;
 
    public ExcelException(ResponseResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.status = resultEnum.getStatus();
    }
 
    public ExcelException(Integer status, String message) {
        super(message);
        this.status = status;
    }
}