Skip to content

[HttpClient] Clarify which is the top level exception for http client if you want to catch everything #15905

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

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Oct 8, 2021

The fact that right now https://symfony.com/doc/current/http_client.html#handling-exceptions starts by mentioning an appropriate exception, all of which implement the [...]HttpExceptionInterface is kinda misleading as that is only the interface for http-status-codes exceptions, not for all http client exceptions.

@carsonbot carsonbot added this to the 4.4 milestone Oct 8, 2021
@carsonbot carsonbot changed the title Clarify which is the top level exception for http client if you want to catch everything [HttpClient] Clarify which is the top level exception for http client if you want to catch everything Oct 8, 2021
@javiereguiluz
Copy link
Member

Thanks!

@javiereguiluz javiereguiluz merged commit c6805ff into symfony:4.4 Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants