Files
shlink/module/Common/src/Exception/WrongIpException.php
2017-10-12 10:13:20 +02:00

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