mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
11 lines
280 B
PHP
11 lines
280 B
PHP
<?php
|
|
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);
|
|
}
|
|
}
|