Package org.apache.drill.common.parser
Class ErrorListener
java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.apache.drill.common.parser.ErrorListener
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener
public class ErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
Custom error listener that converts all syntax errors into
ExpressionParsingException
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
syntaxError
(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAmbiguity, reportAttemptingFullContext, reportContextSensitivity
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ErrorListener
public ErrorListener()
-
-
Method Details
-
syntaxError
public void syntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) - Specified by:
syntaxError
in interfaceorg.antlr.v4.runtime.ANTLRErrorListener
- Overrides:
syntaxError
in classorg.antlr.v4.runtime.BaseErrorListener
-