Interface ErrorCollector
- All Known Implementing Classes:
ErrorCollectorImpl
public interface ErrorCollector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpectedConstantValue
(ExpressionPosition expr, int actual, String s) void
addGeneralError
(ExpressionPosition expr, String s) void
addNonNumericType
(ExpressionPosition expr, TypeProtos.MajorType actual) void
addUnexpectedArgumentCount
(ExpressionPosition expr, int actual, int expected) void
addUnexpectedArgumentCount
(ExpressionPosition expr, int actual, org.apache.drill.shaded.guava.com.google.common.collect.Range<Integer> expected) void
addUnexpectedArgumentType
(ExpressionPosition expr, String name, TypeProtos.MajorType actual, TypeProtos.MajorType[] expected, int argumentIndex) void
addUnexpectedType
(ExpressionPosition expr, int index, TypeProtos.MajorType actual) int
boolean
void
reportErrors
(org.slf4j.Logger logger) Checks for errors and throws a user exception if any are found.
-
Method Details
-
addGeneralError
-
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
-
addNonNumericType
-
addUnexpectedType
-
addExpectedConstantValue
-
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
-
-