mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
16 lines
340 B
PHP
16 lines
340 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Exception;
|
|
|
|
use function sprintf;
|
|
|
|
class ApiKeyConflictException extends RuntimeException implements ExceptionInterface
|
|
{
|
|
public static function forName(string $name): self
|
|
{
|
|
return new self(sprintf('An API key with name "%s" already exists', $name));
|
|
}
|
|
}
|