Created TagConflictException

This commit is contained in:
Alejandro Celaya 2019-12-06 10:20:56 +01:00
parent e2a9a989ab
commit f62ed66e26

View 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));
}
}