Class WarningFailureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.elastic.clients.transport.rest5_client.low_level.WarningFailureException
All Implemented Interfaces:
Serializable

public final class WarningFailureException extends RuntimeException
This exception is used to indicate that one or more Response.getWarnings() exist and is typically used when the Rest5Client is set to fail by setting Rest5ClientBuilder.setStrictDeprecationMode(boolean) to `true`.
See Also:
  • Constructor Details

  • Method Details

    • getResponse

      public Response getResponse()
      Returns the Response that caused this exception to be thrown.