mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-29 02:11:10 -06:00
Created TagConflictException
This commit is contained in:
parent
e2a9a989ab
commit
f62ed66e26
15
module/Core/src/Exception/TagConflictException.php
Normal file
15
module/Core/src/Exception/TagConflictException.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Shlinkio\Shlink\Core\Exception;
|
||||||
|
|
||||||
|
use function sprintf;
|
||||||
|
|
||||||
|
class TagConflictException extends RuntimeException
|
||||||
|
{
|
||||||
|
public static function fromExistingTag(string $tag): self
|
||||||
|
{
|
||||||
|
return new self(sprintf('Tag with name %s already exists', $tag));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user