diff options
| author | s1n <[email protected]> | 2020-03-28 10:36:41 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2020-03-28 10:36:41 -0700 |
| commit | 25b7d2aab61ae6421398d3abae5da6ffe590333d (patch) | |
| tree | 611985ec78bb2d94099c9fd5dd687f5c9cee6f3e /includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php | |
| parent | Initial commit (diff) | |
| download | crack.cf-backup-master.tar.xz crack.cf-backup-master.zip | |
Diffstat (limited to 'includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php')
| -rw-r--r-- | includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php b/includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php new file mode 100644 index 0000000..354f4b6 --- /dev/null +++ b/includes/vendor/maxmind/web-service-common/src/Exception/InvalidRequestException.php @@ -0,0 +1,37 @@ +<?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; + } +} |