GeoIP2-php/src/GeoIP2/Exception/WebServiceException.php

27 lines
524 B
PHP
Raw Normal View History

<?php
namespace GeoIP2\Exception;
2013-05-10 17:47:11 +00:00
/**
* This class represents an error returned by MaxMind's GeoIP2 Precision
* web service.
*/
2013-05-13 17:29:14 +00:00
class WebServiceException extends HttpException
{
2013-05-10 17:47:11 +00:00
/**
* The code returned by the MaxMind web service
*/
public $error;
public function __construct(
$message,
2013-05-10 17:47:11 +00:00
$error,
$httpStatus,
$uri,
Exception $previous = null
) {
2013-05-10 17:47:11 +00:00
$this->error = $error;
parent::__construct($message, $httpStatus, $uri, $previous);
}
}