Package org.elasticsearch.client
Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.elasticsearch.client.ResponseException
- All Implemented Interfaces:
java.io.Serializable
public final class ResponseException
extends java.io.IOException
Exception thrown when an elasticsearch node responds to a request with a status code that indicates an error.
Holds the response that was returned.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ResponseException(Response response)
-
Method Summary
Modifier and Type Method Description Response
getResponse()
Returns theResponse
that caused this exception to be thrown.
-
Constructor Details
-
ResponseException
- Throws:
java.io.IOException
-
-
Method Details
-
getResponse
Returns theResponse
that caused this exception to be thrown.
-