Class ResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.opensearch.client.transport.httpclient5.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:
  • Method Details

    • getResponse

      public org.opensearch.client.transport.httpclient5.Response getResponse()
      Returns the Response that caused this exception to be thrown.
    • status

      public int status()
      HTTP status code returned by OpenSearch.