package com.ruoyi.web.modules.freight.exception;

import java.util.Collections;
import java.util.List;

/**
 * 运费模版批量删除失败（整批不删）
 */
public class FreightTemplateBatchDeleteException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    private final List<String> reasons;

    public FreightTemplateBatchDeleteException(String message, List<String> reasons)
    {
        super(message);
        this.reasons = reasons == null ? Collections.emptyList() : reasons;
    }

    public List<String> getReasons()
    {
        return reasons;
    }
}
