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.
*/
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);
}
}