<?php

declare(strict_types=1);

namespace KupShop\CatalogElasticBundle\Exception;

class UnknownFilterException extends \RuntimeException
{
    public static function create(string $filterName, ?\Throwable $previous = null): self
    {
        return new self("Unsupported or unknown filter: {$filterName}", previous: $previous);
    }
}
