kriswallsmith/Buzz — pull request #170 by CEikermann (2014-09-03 11:48:12+00:00)
Title: RequestException extends ClientException

Hey,

Problem Scenario:
- HWIOAuthBundle is using the Buzz library ( https://github.com/hwi/HWIOAuthBundle )
- In case of a timeout error a ClientException will be thrown
- You can catch that exception in your application, but you don't have any access to the request object to log and error with the log with is causing a timeout.

Solution:
- Create a new Exception like RequestException
- Extend it with ClientException to have a 100% backwards compatibility
- Store the request object in the RequestException

Can you follow my problem scenario?

Would be very nice if you can merge it into your repo.
Feel free to drop a comment

Best regards,
Christian