diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
| commit | 5fe7c87967ff29c4a8f03a9186918d8359f4887e (patch) | |
| tree | dfdd4fdc7a4e96266305f82f5846750ab2efabc9 /src/Exceptions | |
| parent | 01eac9658c3bc486d2d42a18557fdb82a536348e (diff) | |
big update
Diffstat (limited to 'src/Exceptions')
| -rw-r--r-- | src/Exceptions/NotFoundException.php | 12 | ||||
| -rw-r--r-- | src/Exceptions/UnknownMethodException.php | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/Exceptions/NotFoundException.php b/src/Exceptions/NotFoundException.php new file mode 100644 index 0000000..306ba15 --- /dev/null +++ b/src/Exceptions/NotFoundException.php @@ -0,0 +1,12 @@ +<?php + +declare(strict_types=1); + +namespace Lightscale\Router\Exceptions; + +use RuntimeException; + +class NotFoundException extends RuntimeException +{ + protected $message = 'Could not find request route'; +} diff --git a/src/Exceptions/UnknownMethodException.php b/src/Exceptions/UnknownMethodException.php new file mode 100644 index 0000000..220cf42 --- /dev/null +++ b/src/Exceptions/UnknownMethodException.php @@ -0,0 +1,12 @@ +<?php + +declare(strict_types=1); + +namespace Lightscale\Router\Exceptions; + +use RuntimeException; + +class UnknownMethodException extends RuntimeException +{ + protected $message = 'Unknown HTTP request method'; +} |
