public class ResponseException extends Exception
Request.execute() and ResponseHandler.handle(Response). Acts as a
wrapper for any IOException thrown when executing the request. It also a root of user-defined exceptions thrown in
ResponseHandler.handle(Response) method.
Subclasses of this class such as ResponseConnectTimeoutException, ResponseProtocolException,
and ResponseTransportException may be thrown for specific error conditions; you are encouraged to
catch these if you need to handle them specifically, rather than checking Throwable.getCause() to detect
the corresponding exceptions thrown by the internal client implementation.
| Constructor and Description |
|---|
ResponseException() |
ResponseException(String message) |
ResponseException(String message,
Throwable cause) |
ResponseException(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2015 Atlassian. All rights reserved.