package com.njcn.gather.tools.report.util;

import com.njcn.common.pojo.exception.BusinessException;
import com.njcn.gather.tools.report.model.enums.ReportResponseEnum;

/**
 * 报告生成异常工具类
 * 基于现有的BusinessException创建报告生成相关异常
 * 
 * @author hongawen
 */
public class ReportExceptionUtil {

    /**
     * 根据异常类型和消息创建BusinessException
     */
    public static BusinessException create(ReportResponseEnum responseEnum, String customMessage) {
        return new BusinessException(responseEnum, customMessage);
    }
    
    /**
     * 根据异常类型创建BusinessException（使用默认消息）
     */
    public static BusinessException create(ReportResponseEnum responseEnum) {
        return new BusinessException(responseEnum);
    }
}