You are here

public function InvalidRequestException::__construct in Smart IP 6.2

Same name in this branch
  1. 6.2 includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php \MaxMind\Exception\InvalidRequestException::__construct()
  2. 6.2 includes/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php \GeoIp2\Exception\InvalidRequestException::__construct()
Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php \MaxMind\Exception\InvalidRequestException::__construct()

Parameters

string $message The exception message:

int $error The error code returned by the MaxMind web service:

int $httpStatus The HTTP status code of the response:

string $uri The URI queries:

\Exception $previous The previous exception, if any.:

Overrides HttpException::__construct

File

includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php, line 22

Class

InvalidRequestException
Thrown when a MaxMind web service returns an error relating to the request.

Namespace

MaxMind\Exception

Code

public function __construct($message, $error, $httpStatus, $uri, \Exception $previous = null) {
  $this->error = $error;
  parent::__construct($message, $httpStatus, $uri, $previous);
}