com.atlassian.sal.api.net
Class ResponseStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.sal.api.net.ResponseException
              extended by com.atlassian.sal.api.net.ResponseStatusException
All Implemented Interfaces:
Serializable

public class ResponseStatusException
extends ResponseException

Thrown by Request.execute() to indicate that the request was unsuccessful based on the response's status code.

For other Request methods that take a response handler, this exception is not thrown since it is up to the handler to determine whether a response was an error.

Since:
2.7.0
See Also:
Serialized Form

Constructor Summary
ResponseStatusException(String message, Response response)
           
 
Method Summary
 Response getResponse()
          Returns the actual response, allowing further inspection of the status code and error message.
 
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

ResponseStatusException

public ResponseStatusException(String message,
                               Response response)
Method Detail

getResponse

public Response getResponse()
Returns the actual response, allowing further inspection of the status code and error message.



Copyright © 2011 Atlassian. All Rights Reserved.