Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable, CleanableFailure
    Direct Known Subclasses:
    CherrypickAncestorCommitException, DuplicateWAPCommitException

    public class ValidationException
    extends java.lang.RuntimeException
    implements CleanableFailure
    Exception which is raised when the arguments are valid in isolation, but not in conjunction with other arguments or state, as opposed to IllegalArgumentException which is raised when an argument value is always invalid.

    A ValidationException will cause the operation to abort.

    For example, this is thrown when attempting to create a table with a PartitionSpec that is not compatible with the table Schema

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationException​(java.lang.String message, java.lang.Object... args)  
      ValidationException​(java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void check​(boolean test, java.lang.String message, java.lang.Object... args)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValidationException

        @FormatMethod
        public ValidationException​(java.lang.String message,
                                   java.lang.Object... args)
      • ValidationException

        @FormatMethod
        public ValidationException​(java.lang.Throwable cause,
                                   java.lang.String message,
                                   java.lang.Object... args)
    • Method Detail

      • check

        @FormatMethod
        public static void check​(boolean test,
                                 java.lang.String message,
                                 java.lang.Object... args)