|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.google.api.client.http.HttpResponseException
public class HttpResponseException
Exception thrown when an error status code is detected in an HTTP response.
Constructor Summary | |
---|---|
HttpResponseException(HttpResponse response)
Constructor that uses computeMessage(HttpResponse) for the detail message. |
|
HttpResponseException(HttpResponse response,
String message)
Constructor that allows an alternative detail message to be used. |
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 |
Constructor Detail |
---|
public HttpResponseException(HttpResponse response)
computeMessage(HttpResponse)
for the detail message.
response
- HTTP responsepublic HttpResponseException(HttpResponse response, String message)
response
- HTTP responsemessage
- detail message to use or null
for noneMethod Detail |
---|
public final HttpResponse getResponse()
public static String computeMessage(HttpResponse response)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |