4e23b6b207
Geoip 2.4.2 -> 2.6.0 MaxMind 1.1.0 -> 1.1.3
27 lines
520 B
PHP
27 lines
520 B
PHP
<?php
|
|
|
|
namespace GeoIp2\Exception;
|
|
|
|
/**
|
|
* This class represents an error returned by MaxMind's GeoIP2
|
|
* web service.
|
|
*/
|
|
class InvalidRequestException extends HttpException
|
|
{
|
|
/**
|
|
* The code returned by the MaxMind web service.
|
|
*/
|
|
public $error;
|
|
|
|
public function __construct(
|
|
$message,
|
|
$error,
|
|
$httpStatus,
|
|
$uri,
|
|
\Exception $previous = null
|
|
) {
|
|
$this->error = $error;
|
|
parent::__construct($message, $httpStatus, $uri, $previous);
|
|
}
|
|
}
|