Skip to content

Added note about HttpException is not thrown by default #132

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 2 commits into from
Aug 3, 2016

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jul 28, 2016

No description provided.

@@ -18,6 +18,10 @@ TransferException something unexpected happened \-
================================== ============================= ===================

.. note::
By default clients will always return a PSR-7 response instead of throwing a HttpException. Configure your client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would say: Write your application to check the response status or use the plugin to make sure the HttpException is thrown.

configuring the actual client to throw exceptions should be discouraged, it will mess with the plugin chain and logging http errors, among other things.

@Nyholm
Copy link
Member Author

Nyholm commented Aug 2, 2016

Thank you. The PR is updated

@dbu dbu merged commit aff57d2 into php-http:master Aug 3, 2016
@Nyholm Nyholm deleted the exception branch August 4, 2016 18:34
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.

2 participants