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
          Deprecated. (scheduled to be made private in 1.6) Use getResponse()
 
Constructor Summary
HttpResponseException(HttpResponse response)
           
 
Method Summary
static String computeMessage(HttpResponse response)
          Returns an exception message to use for the given HTTP response.
 HttpResponse getResponse()
          Returns the 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

@Deprecated
public final HttpResponse response
Deprecated. (scheduled to be made private in 1.6) Use getResponse()
HTTP response.

Constructor Detail

HttpResponseException

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

getResponse

public HttpResponse getResponse()
Returns the HTTP response.

Since:
1.5

computeMessage

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



Copyright © 2011 Google. All Rights Reserved.