summaryrefslogtreecommitdiff
path: root/src/Router/Router.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-08-19 15:50:42 +0200
committerDaniel Weipert <git@mail.dweipert.de>2025-08-19 16:11:52 +0200
commitd08f4c83470c25d35d24594bd73e4effdac191a0 (patch)
tree8320e4d0750776891fa5680ce5904de714128fce /src/Router/Router.php
parenta0ad1f5e7fac279b33ea09ca0e347cd7d02cd8ec (diff)
database migrations and models for users, devices, tokens
Diffstat (limited to 'src/Router/Router.php')
-rw-r--r--src/Router/Router.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Router/Router.php b/src/Router/Router.php
index 1739e7c..61abed1 100644
--- a/src/Router/Router.php
+++ b/src/Router/Router.php
@@ -66,6 +66,8 @@ class Router
return new ErrorResponse(ErrorCode::NOT_FOUND, "404", Response::HTTP_NOT_FOUND);
} catch (MethodNotAllowedException $exception) {
return new ErrorResponse(ErrorCode::FORBIDDEN, "403", Response::HTTP_FORBIDDEN);
+ } catch (\LogicException $exception) { // display logic exceptions normally
+ throw $exception;
} catch (\Exception $exception) {
return new ErrorResponse(
ErrorCode::UNKNOWN,