-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
In our app I noticed that some errors that happened in our API weren't correctly handled to return some error json. After some digging I found that HttpKernel only catches \Exception but not \Throwable:
| } catch (\Exception $e) { |
I'm wondering whether this is intentional for some reason or if it is just a remnant of the past and should have been changed when Throwable was introduced. As you can see a few lines below you're calling $this->handleThrowable($e, $request, $type); but it's only called for Exception and not other Throwable.