Rest icon indicating copy to clipboard operation
Rest copied to clipboard

Allows Errors in $router->exceptionRoute method

Open angi-s opened this issue 6 years ago • 0 comments

I have extended the $router->exceptionRoute() method to be able to catch Throwable Errors that are not being caught by $router->errorRoute() method.

Ex:

$router->exceptionRoute(Error::class, function (\Error $e) use ($logger) {
    $logger->error($e);
    ...
});

angi-s avatar Feb 29 '20 09:02 angi-s