mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-05 23:03:11 +08:00
13 lines
306 B
PHP
13 lines
306 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common\Exception;
|
|
|
|
class WrongIpException extends RuntimeException
|
|
{
|
|
public static function fromIpAddress($ipAddress, \Exception $prev = null)
|
|
{
|
|
return new self(sprintf('Provided IP "%s" is invalid', $ipAddress), 0, $prev);
|
|
}
|
|
}
|