technoweenie/faraday — pull request #129 by nbibler (2012-03-29 19:39:45+00:00)
Title: Wrap known exceptions which bubble up through Net::HTTP

The Net::HTTP library tends to throw many exceptions. Only catching `Errno::ECONNREFUSED` does not nearly cover the multitude of exceptions thrown.

This pull request extends the Net::HTTP adapter to rescue from several exceptions which I've come across in production applications through the years and wrap them as `Faraday::Error::ConnectionFailed` exceptions.