mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 20:22:12 +00:00
@@ -329,6 +329,8 @@ class Router
|
||||
throw new HttpException('Exception handler must implement the IExceptionHandler interface.', 500);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
if ($handler->handleError($this->request, $e) !== null) {
|
||||
|
||||
$rewriteRoute = $this->request->getRewriteRoute();
|
||||
@@ -349,6 +351,10 @@ class Router
|
||||
return $this->routeRequest(true);
|
||||
}
|
||||
}
|
||||
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
throw $e;
|
||||
|
||||
Reference in New Issue
Block a user