Skip to content
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

Document exceptions #71

Merged
merged 2 commits into from
Mar 2, 2016
Merged

Document exceptions #71

merged 2 commits into from
Mar 2, 2016

Conversation

ddeboer
Copy link
Contributor

@ddeboer ddeboer commented Jan 4, 2016

Fix #7

due to network issues ``getRequest()``
|nbsp| |nbsp| └ HttpException error response ``getRequest()``
``getResponse()``
================================== ====================== ===================
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is TransferException used directly? If not, why isn’t it abstract?

Copy link
Member

Choose a reason for hiding this comment

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

I think we already went down this path. TransferException is used somewhere, don't ask where, I don't know. 😛

Copy link
Contributor

Choose a reason for hiding this comment

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

for example here, when we don't know exactly what is happening: https://github.com/php-http/guzzle6-adapter/blob/master/src/Promise.php#L138

Copy link
Contributor

Choose a reason for hiding this comment

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

so i would say "when something unexpected happened"

@dbu
Copy link
Contributor

dbu commented Jan 5, 2016

👍

should we mention async? maybe as a note at the bottom, linking to the async documentation. i think it makes more sense to explain the details of exception handling in the promise/async doc page than here. still, the exceptions returned by Promise::wait() are the same as here, with the same semantics.

@sagikazarmark
Copy link
Member

the exceptions returned by Promise::wait() are the same as here, with the same semantics.

If by same you mean Promise can throw HTTPlug and SPL exceptions then yes.

@dbu
Copy link
Contributor

dbu commented Jan 5, 2016 via email

@sagikazarmark
Copy link
Member

Ah, I see.

@sagikazarmark
Copy link
Member

What's the situation with this one?

@dbu
Copy link
Contributor

dbu commented Feb 17, 2016

ping @ddeboer

@dbu
Copy link
Contributor

dbu commented Mar 2, 2016

i have rebased this and added the note about promise. imho ready to merge

@sagikazarmark
Copy link
Member

👍

dbu added a commit that referenced this pull request Mar 2, 2016
@dbu dbu merged commit b330c94 into master Mar 2, 2016
@dbu dbu deleted the exceptions branch March 2, 2016 08:30
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.

3 participants