Class ResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
co.elastic.clients.transport.rest5_client.low_level.ResponseException
All Implemented Interfaces:
Serializable

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

  • Method Details

    • getResponse

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