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

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

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

    private final List<String> reasons;

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

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