You are here

class InvalidRequestException in Smart IP 7.2

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

This class represents an error returned by MaxMind's GeoIP2 web service.

Hierarchy

Expanded class hierarchy of InvalidRequestException

1 file declares its use of InvalidRequestException
Client.php in includes/vendor/geoip2/geoip2/src/WebService/Client.php

File

includes/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php, line 9

Namespace

GeoIp2\Exception
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpException::$uri public property The URI queried
InvalidRequestException::$error public property The code returned by the MaxMind web service
InvalidRequestException::__construct public function Overrides HttpException::__construct