View Javadoc
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      public ResponseException() {
18          super();
19      }
20  
21      public ResponseException(String message, Throwable cause) {
22          super(message, cause);
23      }
24  
25      public ResponseException(String message) {
26          super(message);
27      }
28  
29      public ResponseException(Throwable cause) {
30          super(cause);
31      }
32  
33  }