guzzle: Guzzle exceptions
I dont believe we have the best structure of our exceptions.
The exception hierarchy currently look like this:
\InvalidArgumentException
-- InvalidArgumentException
\RuntimeException
-- TransferException
-- -- RequestException
-- -- -- TooManyRedirectsException
-- -- -- ConnectException
-- -- -- BadResponseException
-- -- -- -- ClientException
-- -- -- -- ServerException
I suggest we update it to:
\InvalidArgumentException
-- InvalidArgumentException
\RuntimeException
-- RequestException
-- TooManyRedirectsException
-- NetworkException
-- BadResponseException
-- -- ClientException
-- -- ServerException
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 19 (16 by maintainers)
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 😃