| 1 | <?php |
||
| 9 | class HttpException extends ErrorException |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @return int |
||
| 13 | */ |
||
| 14 | protected $statusCode; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return array |
||
| 18 | */ |
||
| 19 | protected $headers; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $message Error message |
||
| 23 | * @param int $statusCode HTTP status code |
||
| 24 | * @param int $code Internal code for the application error |
||
| 25 | * @param string $logLevel Log level of the error, from Psr\Log\LogLevel |
||
| 26 | * @param array $headers Optional header response information |
||
| 27 | */ |
||
| 28 | public function __construct(string $message, int $statusCode, int $code = 0, string $logLevel = LogLevel::WARNING, array $headers = []) |
||
| 35 | |||
| 36 | public function getStatusCode(): int |
||
| 40 | |||
| 41 | public function getHeaders(): array |
||
| 45 | } |
||
| 46 |