com.google.api.client.http
Class HttpResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
response
@Deprecated
public final HttpResponse response
- Deprecated. (scheduled to be made private in 1.6) Use
getResponse()
- HTTP response.
HttpResponseException
public HttpResponseException(HttpResponse response)
- Parameters:
response
- HTTP response
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.