Class ValidationFailure

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.s3a.commit.ValidationFailure
All Implemented Interfaces:
Serializable

public class ValidationFailure extends IOException
Exception raised on validation failures; kept as an IOException for consistency with other failures.
See Also:
  • Constructor Details

    • ValidationFailure

      public ValidationFailure(String message, Object... args)
      Create an instance with string formatting applied to the message and arguments.
      Parameters:
      message - error message
      args - optional list of arguments
  • Method Details

    • verify

      public static void verify(boolean expression, String message, Object... args) throws ValidationFailure
      Verify that a condition holds.
      Parameters:
      expression - expression which must be true
      message - message to raise on a failure
      args - arguments for the message formatting
      Throws:
      ValidationFailure - on a failure