-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Add HttpException::fromStatusCode()
#53212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
14d46b8
to
5a7ca92
Compare
A test? 🥺 |
This is already tested by the added code paths to me. More tests would look like testing a getter to me :) |
Great idea. It will help to ignore some HTTP exceptions on Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also add a test, with a data provider, it will catch typos etc (returning the an exception not corresponding to the passed parameter).
5a7ca92
to
98f4fa1
Compare
alright, updated
Already handled, that's what the changes on ErrorListener are about. |
A small helper idea that popped up when reviewing #53209