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);
        ...
    });
@angi-s angi-s closed this Nov 18, 2025
@angi-s angi-s deleted the patch-1 branch November 18, 2025 21:07
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