mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
16 lines
380 B
PHP
16 lines
380 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Core\Exception;
|
|
|
|
use function sprintf;
|
|
|
|
class InvalidIpFormatException extends RuntimeException implements ExceptionInterface
|
|
{
|
|
public static function fromInvalidIp(string $ipAddress): self
|
|
{
|
|
return new self(sprintf('Provided IP %s does not have the right format. Expected X.X.X.X', $ipAddress));
|
|
}
|
|
}
|