opower/rest-client-tools — pull request #3 by polarbizzle (2014-12-04 17:42:24+00:00)
Title: fix error handling in ClientErrorHandler

The ClientErrorInterceptors are designed to handle error responses from the server (non 200 response code). However, some exceptions can occur that are not failures returned from the server but failure to process the response on the client side such as json parsing exceptions etc. Instead of trying to pass those exceptions to the ClientErrorInterceptors, we check the type of the Exception and only pass it along if it can be expected to be handled by the ClientErrorInterceptors. If not, then we simply rethrow the exception.