InvalidRequestException.php in Smart IP 6.2
Same filename in this branch
Same filename and directory in other branches
Namespace
MaxMind\ExceptionFile
includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.phpView source
<?php
namespace MaxMind\Exception;
/**
* Thrown when a MaxMind web service returns an error relating to the request.
*/
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;
}
}
Classes
Name | Description |
---|---|
InvalidRequestException | Thrown when a MaxMind web service returns an error relating to the request. |