Class ResponseException

All Implemented Interfaces:
Serializable

public final class ResponseException extends IOException
Exception thrown when an opensearch node responds to a request with a status code that indicates an error. Holds the response that was returned.
See Also:
  • Constructor Details

    • ResponseException

      public ResponseException(Response response) throws IOException
      Creates a ResponseException containing the given Response.
      Parameters:
      response - The error response.
      Throws:
      IOException
  • Method Details

    • getResponse

      public Response getResponse()
      Returns the Response that caused this exception to be thrown.