Merge pull request #295 from skipperbent/v3-development

Fixed: try next exception-handler if one throws error.
This commit is contained in:
Simon Sessingø
2017-10-07 17:53:17 +02:00
committed by GitHub
+6
View File
@@ -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;