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

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

/**
 * 商户批量删除失败
 */
public class MerchantBatchDeleteException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    private final List<String> reasons;

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

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