summaryrefslogtreecommitdiff
path: root/src/Errors/NotFoundError.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-04-16 15:39:21 +0200
committerDaniel Weipert <git@mail.dweipert.de>2026-04-16 15:39:21 +0200
commit21593231a0e7de30004a8b4530047b4ad4680db7 (patch)
tree7a86fd3e99bd37631c48474bcdfb267d0763b4af /src/Errors/NotFoundError.php
parentf3202403339e94f0186b9ff19e83c7a32fdad198 (diff)
implement against elementHEADmain
Diffstat (limited to 'src/Errors/NotFoundError.php')
-rwxr-xr-xsrc/Errors/NotFoundError.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Errors/NotFoundError.php b/src/Errors/NotFoundError.php
new file mode 100755
index 0000000..a128509
--- /dev/null
+++ b/src/Errors/NotFoundError.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace App\Errors;
+
+use Matrix\Enums\ErrorCode;
+use Symfony\Component\HttpFoundation\Response;
+
+class NotFoundError extends Exception
+{
+ public function __construct(string $message = "404")
+ {
+ parent::__construct(ErrorCode::NOT_FOUND, $message, Response::HTTP_NOT_FOUND);
+ }
+
+ public function getAdditionalData(): array
+ {
+ return [];
+ }
+}