public class ResponseStatusException extends ResponseException
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.
| Constructor and Description |
|---|
ResponseStatusException(String message,
Response response) |
| Modifier and Type | Method and Description |
|---|---|
Response |
getResponse()
Returns the actual response, allowing further inspection of the status code
and error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2015 Atlassian. All rights reserved.