Class WarningFailureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opensearch.client.transport.httpclient5.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 ApacheHttpClient5Transport is set to fail by passing `true` to `strictDeprecationMode`.
See Also:
  • Constructor Details

    • WarningFailureException

      public WarningFailureException(org.opensearch.client.transport.httpclient5.Response response) throws IOException
      Creates a WarningFailureException instance.
      Parameters:
      response - the response that contains warnings.
      Throws:
      IOException - if there is a problem building the exception message.
  • Method Details

    • getResponse

      public org.opensearch.client.transport.httpclient5.Response getResponse()
      Returns the Response that caused this exception to be thrown.