Interface ErrorCollector

All Known Implementing Classes:
ErrorCollectorImpl

public interface ErrorCollector
  • Method Details

    • addGeneralError

      void addGeneralError(ExpressionPosition expr, String s)
    • addUnexpectedArgumentType

      void addUnexpectedArgumentType(ExpressionPosition expr, String name, TypeProtos.MajorType actual, TypeProtos.MajorType[] expected, int argumentIndex)
    • addUnexpectedArgumentCount

      void addUnexpectedArgumentCount(ExpressionPosition expr, int actual, org.apache.drill.shaded.guava.com.google.common.collect.Range<Integer> expected)
    • addUnexpectedArgumentCount

      void addUnexpectedArgumentCount(ExpressionPosition expr, int actual, int expected)
    • addNonNumericType

      void addNonNumericType(ExpressionPosition expr, TypeProtos.MajorType actual)
    • addUnexpectedType

      void addUnexpectedType(ExpressionPosition expr, int index, TypeProtos.MajorType actual)
    • addExpectedConstantValue

      void addExpectedConstantValue(ExpressionPosition expr, int actual, String s)
    • hasErrors

      boolean hasErrors()
    • getErrorCount

      int getErrorCount()
    • toErrorString

      String toErrorString()
    • reportErrors

      void reportErrors(org.slf4j.Logger logger)
      Checks for errors and throws a user exception if any are found. The caller thus need not implement its own error checking; just call this method.
      Parameters:
      logger -