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 moreResponse.getWarnings()
exist and is typically used when theRestClient
is set to fail by settingRestClientBuilder.setStrictDeprecationMode(boolean)
to `true`.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WarningFailureException(Response response)
-
Method Summary
Modifier and Type Method Description Response
getResponse()
Returns theResponse
that caused this exception to be thrown.
-