summaryrefslogtreecommitdiff
path: root/src/Exceptions
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
commit8abfce2091e9665af93a920aed246e3b04abc2aa (patch)
treebd72ace84cdb6716170bb71fc7d7fbb45c5fb33d /src/Exceptions
parentc540b7ac4dedb94cffe9aaeae9f936aba2a36d79 (diff)
throw an exception when route handler does not return response
Diffstat (limited to 'src/Exceptions')
-rw-r--r--src/Exceptions/InvalidResponseException.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Exceptions/InvalidResponseException.php b/src/Exceptions/InvalidResponseException.php
new file mode 100644
index 0000000..98577a1
--- /dev/null
+++ b/src/Exceptions/InvalidResponseException.php
@@ -0,0 +1,12 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Exceptions;
+
+use RuntimeException;
+
+class InvalidResponseException extends RuntimeException
+{
+ protected $message = 'Does not return an instance of ResponseInterface';
+}