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:
Serializable
public final class WarningFailureException extends RuntimeException
This exception is used to indicate that one or moreResponse.getWarnings()exist and is typically used when theRestClientis set to fail by settingRestClientBuilder.setStrictDeprecationMode(boolean)to `true`.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WarningFailureException(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
-
WarningFailureException
public WarningFailureException(Response response) throws IOException
- Throws:
IOException
-
-