diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-10-07 22:02:28 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-10-07 22:02:28 +0200 |
commit | 1b3e3b1d65126da909d0013c9c0a0cb3f41639c1 (patch) | |
tree | 9c249a880acfa8c9cbab48989ad33ba7d05f0f30 /src | |
parent | 8d090438b659b641dd0f6cbc99193f3b48b2fc4b (diff) |
Exceptions: Added HttpNotFound exception
Diffstat (limited to 'src')
-rw-r--r-- | src/Http/Exceptions/HttpNotFound.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Http/Exceptions/HttpNotFound.php b/src/Http/Exceptions/HttpNotFound.php new file mode 100644 index 00000000..324adaf9 --- /dev/null +++ b/src/Http/Exceptions/HttpNotFound.php @@ -0,0 +1,23 @@ +<?php + +namespace Engelsystem\Http\Exceptions; + +use Throwable; + +class HttpNotFound extends HttpException +{ + /** + * @param string $message + * @param array $headers + * @param int $code + * @param Throwable|null $previous + */ + public function __construct( + string $message = '', + array $headers = [], + int $code = 0, + Throwable $previous = null + ) { + parent::__construct(404, $message, $headers, $code, $previous); + } +} |