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

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

/**
 * 商品服务批量删除失败（整批不删）
 */
public class GoodsServiceBatchDeleteException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    private final List<String> reasons;

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

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