| [ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare(strict_types=1); 4 5 namespace MaxMind\Exception; 6 7 /** 8 * This class represents an HTTP transport error. 9 */ 10 class HttpException extends WebServiceException 11 { 12 /** 13 * The URI queried. 14 */ 15 private readonly string $uri; 16 17 /** 18 * @param string $message a message describing the error 19 * @param int $httpStatus the HTTP status code of the response 20 * @param string $uri the URI used in the request 21 * @param \Throwable $previous the previous exception, if any 22 */ 23 public function __construct( 24 string $message, 25 int $httpStatus, 26 string $uri, 27 ?\Throwable $previous = null 28 ) { 29 $this->uri = $uri; 30 parent::__construct($message, $httpStatus, $previous); 31 } 32 33 public function getUri(): string 34 { 35 return $this->uri; 36 } 37 38 public function getStatusCode(): int 39 { 40 return $this->getCode(); 41 } 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Jul 11 05:10:54 2026 | Cross-referenced by PHPXref 0.7.1 |