[OPTIMISATION] Optimised exception-message thrown when not using IExceptionHandler interface.

This commit is contained in:
Simon Sessingø
2016-04-09 09:45:39 +02:00
parent 7234415e24
commit 5f95290e4b
+1 -1
View File
@@ -188,7 +188,7 @@ class RouterBase {
if($this->request->loadedRoute !== null && $this->request->loadedRoute->exceptionHandler !== null) {
$handler = new $this->request->loadedRoute->exceptionHandler();
if(!($handler instanceof IExceptionHandler)) {
throw new RouterException('Exception handler must be instanceof IExceptionHandler.');
throw new RouterException('Exception handler must implement the IExceptionHandler interface.');
}
$handler->handleError($this->request, $this->request->loadedRoute, $e);