From 9788c5095a67a45fe3545ae0fc747b8e629ea4fd Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 13 Nov 2018 17:48:07 +0100 Subject: Implemented HttpException --- src/Http/Exceptions/HttpException.php | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/Http/Exceptions/HttpException.php (limited to 'src/Http/Exceptions') diff --git a/src/Http/Exceptions/HttpException.php b/src/Http/Exceptions/HttpException.php new file mode 100644 index 00000000..07853d1e --- /dev/null +++ b/src/Http/Exceptions/HttpException.php @@ -0,0 +1,51 @@ +headers = $headers; + $this->statusCode = $statusCode; + + parent::__construct($message, $code, $previous); + } + + /** + * @return array + */ + public function getHeaders(): array + { + return $this->headers; + } + + /** + * @return int + */ + public function getStatusCode(): int + { + return $this->statusCode; + } +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf