Class 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 RestClient is set to fail by setting RestClientBuilder.setStrictDeprecationMode(boolean) to `true`.
See Also:
  • Constructor Details

    • WarningFailureException

      public WarningFailureException(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 Response getResponse()
      Returns the Response that caused this exception to be thrown.