Skip to content

Conversation

angi-s
Copy link

@angi-s angi-s commented Feb 29, 2020

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);
    ...
});

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);
        ...
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant