public interface ErrorCollector
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
getErrorCount() |
boolean |
hasErrors() |
void |
reportErrors(org.slf4j.Logger logger)
Checks for errors and throws a user exception if any are found.
|
String |
toErrorString() |
void addGeneralError(ExpressionPosition expr, String s)
void addUnexpectedArgumentType(ExpressionPosition expr, String name, TypeProtos.MajorType actual, TypeProtos.MajorType[] expected, int argumentIndex)
void addUnexpectedArgumentCount(ExpressionPosition expr, int actual, org.apache.drill.shaded.guava.com.google.common.collect.Range<Integer> expected)
void addUnexpectedArgumentCount(ExpressionPosition expr, int actual, int expected)
void addNonNumericType(ExpressionPosition expr, TypeProtos.MajorType actual)
void addUnexpectedType(ExpressionPosition expr, int index, TypeProtos.MajorType actual)
void addExpectedConstantValue(ExpressionPosition expr, int actual, String s)
boolean hasErrors()
int getErrorCount()
String toErrorString()
void reportErrors(org.slf4j.Logger logger)
logger - Copyright © 2021 The Apache Software Foundation. All rights reserved.