summaryrefslogtreecommitdiff
path: root/src/Exceptions/MissingParameterException.php
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
commit5028ab476d3e262956cef65147e279b7922bb53d (patch)
tree3dc77271eb5ba481fbcecd7dbb12aa8be7ecd0ee /src/Exceptions/MissingParameterException.php
parent37a0c044617de4f847acadcb52ac7574927085a8 (diff)
Created new missing para exception
Diffstat (limited to 'src/Exceptions/MissingParameterException.php')
-rw-r--r--src/Exceptions/MissingParameterException.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Exceptions/MissingParameterException.php b/src/Exceptions/MissingParameterException.php
new file mode 100644
index 0000000..1f9fa29
--- /dev/null
+++ b/src/Exceptions/MissingParameterException.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Exceptions;
+
+use InvalidArgumentException;
+
+class MissingParameterException extends InvalidArgumentException
+{
+ public static function make(string $parameter): self
+ {
+ return new self("Missing route parameter '{$parameter}'");
+ }
+}