shlink/module/Core/src/Exception/NonUniqueSlugException.php

13 lines
287 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Exception;
class NonUniqueSlugException extends InvalidArgumentException
{
public static function fromSlug(string $slug): self
{
return new self(sprintf('Provided slug "%s" is not unique.', $slug));
}
}