1 <?php
2
3 namespace GeoIp2\Exception;
4
5 /**
6 * This class represents an HTTP transport error.
7 */
8
9 class HttpException extends GeoIp2Exception
10 {
11 /**
12 * The URI queried
13 */
14 public $uri;
15
16 public function __construct(
17 $message,
18 $httpStatus,
19 $uri,
20 \Exception $previous = null
21 ) {
22 $this->uri = $uri;
23 parent::__construct($message, $httpStatus, $previous);
24 }
25 }
26