1 package com.atlassian.sal.api.net;
2
3 /**
4 * This exception is thrown by {@link Request#execute()} and {@link ResponseHandler#handle(Response)}. Acts as a
5 * wrapper for any IOException thrown when executing the request. It also a root of user-defined exceptions thrown in
6 * {@link ResponseHandler#handle(Response)} method.
7 * <p>
8 * Subclasses of this class such as {@link ResponseConnectTimeoutException}, {@link ResponseProtocolException},
9 * and {@link ResponseTransportException} may be thrown for specific error conditions; you are encouraged to
10 * catch these if you need to handle them specifically, rather than checking {@link #getCause()} to detect
11 * the corresponding exceptions thrown by the internal client implementation.
12 *
13 * @since 2.0
14 */
15 public class ResponseException extends Exception
16 {
17
18 public ResponseException()
19 {
20 super();
21 }
22
23 public ResponseException(String message, Throwable cause)
24 {
25 super(message, cause);
26 }
27
28 public ResponseException(String message)
29 {
30 super(message);
31 }
32
33 public ResponseException(Throwable cause)
34 {
35 super(cause);
36 }
37
38 }