GeoIP2-php/src/GeoIP2/Exception/WebServiceException.php
2013-05-20 15:38:21 -07:00

27 lines
514 B
PHP

<?php
namespace GeoIP2\Exception;
/**
* This class represents an error returned by MaxMind's GeoIP2
* web service.
*/
class WebServiceException 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);
}
}