Class OpenSearchClientException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opensearch.client.opensearch.generic.OpenSearchClientException
All Implemented Interfaces:
Serializable

public class OpenSearchClientException extends RuntimeException
Exception thrown by API client methods when OpenSearch could not accept or process a request.

The response() contains the the raw response as returned by the API endpoint that was called.

See Also:
  • Constructor Details

    • OpenSearchClientException

      public OpenSearchClientException(Response response)
  • Method Details

    • response

      public Response response()
      The error response sent by OpenSearch
    • status

      public int status()
      Status code returned by OpenSearch. Shortcut for response().status().