Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.opensearch.client.transport.httpclient5.ResponseException
- All Implemented Interfaces:
Serializable
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 Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.transport.httpclient5.ResponseReturns theResponsethat caused this exception to be thrown.intstatus()HTTP status code returned by OpenSearch.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getResponse
public org.opensearch.client.transport.httpclient5.Response getResponse()Returns theResponsethat caused this exception to be thrown. -
status
public int status()HTTP status code returned by OpenSearch.
-