Class OpenSearchClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opensearch.client.opensearch.generic.OpenSearchClientException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpenSearchClientException
-
-
Method Details
-
response
The error response sent by OpenSearch -
status
public int status()Status code returned by OpenSearch. Shortcut forresponse().status().
-