Package com.atlassian.sal.api.net
Class ResponseStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.sal.api.net.ResponseException
com.atlassian.sal.api.net.ResponseStatusException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the actual response, allowing further inspection of the status code and error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseStatusException
-
-
Method Details
-
getResponse
Returns the actual response, allowing further inspection of the status code and error message.
-