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
Guzzle exceptions #2507
Comments
Maybe we should keep |
I did not see a point in keeping both |
What about:
|
The naming of |
Hehe. Im not super happy with HTTPlug's exceptions either =) What is the point of |
But what if you don't want to catch Guzzle exceptions not caused by the actual HTTP request-response stuff? |
Im not sure I 100% understand. Could you rephrase that without the double negative? And what is the "HTTP request-response stuff"? Do you mean the network layer? |
I can see why it might be useful, but TBH I never used it. I don't see any harm in keeping it though. |
And FYI: The class RequestException extends TransferException implements RequestExceptionInterface @sagikazarmark: |
Yeah, those two sound identical. |
I've updated my first entry to this issue. It is now:
|
Kinda odd that we have a custom InvalidArg exception but not for Runtime? |
I saw that you added that in your suggestion. I dont think we should have our own RuntimeException because we are never throwing one, we do however throw a InvalidArgumentException. |
Before I come up with my suggestion would you guys consider having an |
Is It's just it's not mentioned in the issue description (probably because it's an interface) but it is the "number 1" exception I use to catch "all that could go wrong with guzzle" and later decide how to specifically handle stuff. |
This is a discussion with suggestions for v8.0.. no bc change regarding exception structure has been applied to upcoming v7.0 It is good to have your feedback about how you handle exceptions... Note that there is no suggestions about removing this interface :) |
Should this be treated as a bug? (as per php-http/httplug#158 / php-http/httplug#155) Perhaps
I can open a separate issue if this is to be treated as a bug in v7? |
PSR-18 mentions a |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions. |
I dont believe we have the best structure of our exceptions.
The exception hierarchy currently look like this:
I suggest we update it to:
The text was updated successfully, but these errors were encountered: