diff options
Diffstat (limited to 'src/Router/Router.php')
| -rw-r--r-- | src/Router/Router.php | 2 | 
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, | 
