Class OpenSearchClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.opensearch.client.opensearch.generic.OpenSearchClientException
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenSearchClientException extends java.lang.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenSearchClientException(Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
response()
The error response sent by OpenSearchint
status()
Status code returned by OpenSearch.
-