Class 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:
  • Constructor Details

    • ResponseStatusException

      public ResponseStatusException(String message, Response response)
  • Method Details

    • getResponse

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