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
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
|
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 |
ResponseStatusException
public ResponseStatusException(String message,
Response response)
getResponse
public Response getResponse()
- Returns the actual response, allowing further inspection of the status code
and error message.
Copyright © 2015 Atlassian. All rights reserved.