protected void checkResponse() throws IOException, ServiceException {
  if (isOAuthProxyErrorResponse()) {
    handleOAuthProxyErrorResponse();
  }
 else   if (httpConn.getResponseCode() >= 300) {
    handleErrorResponse();
  }
}

protected void checkResponse ( ) throws IOException , ServiceException { if ( isOAuthProxyErrorResponse ( ) ) { handleOAuthProxyErrorResponse ( ) ; } else if ( httpConn . getResponseCode ( ) >= 300 ) { handleErrorResponse ( ) ; } }
called after a request is executed to process the response and generate an appropriate exception ( on failure ) .
