Overview

Namespaces

  • GeoIP2
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Exceptions

  • GeoIP2Exception
  • HttpException
  • WebServiceException
  • Overview
  • Namespace
  • Class
  • Tree
 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: 
API documentation generated by ApiGen 2.8.0