czydojade/src/Exception/UnsupportedModifierException.php
2020-03-14 17:19:43 +01:00

14 lines
293 B
PHP

<?php
namespace App\Exception;
use App\Modifier\Modifier;
class UnsupportedModifierException extends \LogicException
{
public static function createFromModifier(Modifier $modifier)
{
return new static(sprintf("Modifier %s is not supported.", get_class($modifier)));
}
}