mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-29 16:08:29 +03:00
13 lines
287 B
PHP
13 lines
287 B
PHP
|
<?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));
|
||
|
}
|
||
|
}
|