mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
13 lines
313 B
PHP
13 lines
313 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common\Exception;
|
|
|
|
class WrongIpException extends RuntimeException
|
|
{
|
|
public static function fromIpAddress($ipAddress, \Throwable $prev = null): self
|
|
{
|
|
return new self(\sprintf('Provided IP "%s" is invalid', $ipAddress), 0, $prev);
|
|
}
|
|
}
|