package cn.stylefeng.team.project.modular.filing.exceptions;

import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import lombok.Getter;

@Getter
public enum BusinessExcelExceptionEnum implements AbstractExceptionEnum {

    BUSINESS_EXCEL_NOT_EXISTED(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10001", "业务关联Excel查询结果不存在"),

    EXCEL_EXIST_ERROR(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10002", "读取Excel文件失败，请检查是否上传文件");

    private final String errorCode;

    private final String userTip;

    BusinessExcelExceptionEnum(String errorCode, String userTip) {
        this.errorCode = errorCode;
        this.userTip = userTip;
    }

}