class InvalidRequestException in Smart IP 7.2
Same name in this branch
- 7.2 includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php \MaxMind\Exception\InvalidRequestException
- 7.2 includes/vendor/geoip2/geoip2/src/Exception/InvalidRequestException.php \GeoIp2\Exception\InvalidRequestException
Same name and namespace in other branches
- 6.2 includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php \MaxMind\Exception\InvalidRequestException
Thrown when a MaxMind web service returns an error relating to the request.
Hierarchy
- class \MaxMind\Exception\WebServiceException extends \MaxMind\Exception\Exception
- class \MaxMind\Exception\HttpException
- class \MaxMind\Exception\InvalidRequestException
- class \MaxMind\Exception\HttpException
Expanded class hierarchy of InvalidRequestException
1 file declares its use of InvalidRequestException
- Client.php in includes/
vendor/ maxmind/ web-service-common/ src/ WebService/ Client.php
File
- includes/
vendor/ maxmind/ web-service-common/ src/ Exception/ InvalidRequestException.php, line 8
Namespace
MaxMind\ExceptionView source
class InvalidRequestException extends HttpException {
/**
* The code returned by the MaxMind web service
*/
private $error;
/**
* @param string $message The exception message
* @param int $error The error code returned by the MaxMind web service
* @param int $httpStatus The HTTP status code of the response
* @param string $uri The URI queries
* @param \Exception $previous The previous exception, if any.
*/
public function __construct($message, $error, $httpStatus, $uri, \Exception $previous = null) {
$this->error = $error;
parent::__construct($message, $httpStatus, $uri, $previous);
}
public function getErrorCode() {
return $this->error;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpException:: |
private | property | The URI queried | |
HttpException:: |
public | function | ||
HttpException:: |
public | function | ||
InvalidRequestException:: |
private | property | The code returned by the MaxMind web service | |
InvalidRequestException:: |
public | function | ||
InvalidRequestException:: |
public | function |
Overrides HttpException:: |