Class ValidateUtil

java.lang.Object
org.apache.arrow.vector.validate.ValidateUtil

public class ValidateUtil extends Object
Utilities for vector validation.
  • Method Details

    • validateOrThrow

      public static void validateOrThrow(boolean expression, String errorMessage)
      Validate the expression.
      Parameters:
      expression - the expression to validate.
      errorMessage - the error message.
      Throws:
      ValidateUtil.ValidateException - if the expression evaluates to false.
    • validateOrThrow

      public static void validateOrThrow(boolean expression, String errorMessage, Object... args)
      Validate the expression.
      Parameters:
      expression - the expression to validate.
      errorMessage - the error message template.
      args - the error message arguments.
      Throws:
      ValidateUtil.ValidateException - if the expression evaluates to false.