Package org.elasticsearch.client
Class WarningFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.client.WarningFailureException
- All Implemented Interfaces:
java.io.Serializable
public final class WarningFailureException
extends java.lang.RuntimeException
This exception is used to indicate that one or more
Response.getWarnings() exist
and is typically used when the RestClient is set to fail by setting
RestClientBuilder.setStrictDeprecationMode(boolean) to `true`.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description WarningFailureException(Response response) -
Method Summary
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
WarningFailureException
- Throws:
java.io.IOException
-
-
Method Details
-
getResponse
Returns theResponsethat caused this exception to be thrown.
-