com.atlassian.sal.api.net
Class ResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.sal.api.net.ResponseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResponseProtocolException, ResponseStatusException, ResponseTimeoutException, ResponseTransportException

public class ResponseException
extends Exception

This exception is thrown by 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.

Since:
2.0
See Also:
Serialized Form

Constructor Summary
ResponseException()
           
ResponseException(String message)
           
ResponseException(String message, Throwable cause)
           
ResponseException(Throwable cause)
           
 
Method Summary
 
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

ResponseException

public ResponseException()

ResponseException

public ResponseException(String message,
                         Throwable cause)

ResponseException

public ResponseException(String message)

ResponseException

public ResponseException(Throwable cause)


Copyright © 2015 Atlassian. All rights reserved.