com.google.api.client.http
Class HttpResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.google.api.client.http.HttpResponseException
All Implemented Interfaces:
Serializable

public final class HttpResponseException
extends IOException

Exception thrown when an error status code is detected in an HTTP response.

Since:
1.0
Author:
Yaniv Inbar
See Also:
Serialized Form

Field Summary
 HttpResponse response
          HTTP response.
 
Constructor Summary
HttpResponseException(HttpResponse response)
           
 
Method Summary
static String computeMessage(HttpResponse response)
          Returns an exception message to use for the given HTTP response.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

response

public final HttpResponse response
HTTP response.

Constructor Detail

HttpResponseException

public HttpResponseException(HttpResponse response)
Parameters:
response - HTTP response
Method Detail

computeMessage

public static String computeMessage(HttpResponse response)
Returns an exception message to use for the given HTTP response.



Copyright © 2010-2011 Google. All Rights Reserved.