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:
Serializable
public final class ResponseException extends 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsegetResponse()Returns theResponsethat caused this exception to be thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResponseException
public ResponseException(Response response) throws IOException
- Throws:
IOException
-
-