Merge pull request #296 from skipperbent/v3

V3
This commit is contained in:
Simon Sessingø
2017-10-07 17:53:27 +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); throw new HttpException('Exception handler must implement the IExceptionHandler interface.', 500);
} }
try {
if ($handler->handleError($this->request, $e) !== null) { if ($handler->handleError($this->request, $e) !== null) {
$rewriteRoute = $this->request->getRewriteRoute(); $rewriteRoute = $this->request->getRewriteRoute();
@@ -349,6 +351,10 @@ class Router
return $this->routeRequest(true); return $this->routeRequest(true);
} }
} }
} catch (\Exception $e) {
}
} }
throw $e; throw $e;