restsharp/RestSharp — pull request #218 by sdahlbac (2012-02-06 20:06:40+00:00)
Title: Handle connection failures better

Currently it seems that if there is e.g. a connection failure Http.ExtractResponseData chokes with a less than helpful NullReferenceException, This commit seems to fix the issue for me in that now the ErrorMessage and ErrorException refers to connection failure, but as I'm not too familiar with the code base yet please review first to make sure I haven't screwed something else up.