Class AqlErrorHandlerNoRecovery

  • All Implemented Interfaces:
    org.antlr.v4.runtime.ANTLRErrorListener

    public class AqlErrorHandlerNoRecovery
    extends org.antlr.v4.runtime.BaseErrorListener
    Utility class to handle specific errors during parsing
    Allows to return more meaningful messages during AQL parsing Created by christian on 4/15/2016.
    • Constructor Detail

      • AqlErrorHandlerNoRecovery

        public AqlErrorHandlerNoRecovery()
    • Method Detail

      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer,
                                Object offendingSymbol,
                                int line,
                                int charPositionInLine,
                                String msg,
                                org.antlr.v4.runtime.RecognitionException e)
                         throws org.antlr.v4.runtime.misc.ParseCancellationException
        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        syntaxError in class org.antlr.v4.runtime.BaseErrorListener
        Throws:
        org.antlr.v4.runtime.misc.ParseCancellationException
      • reportAmbiguity

        public void reportAmbiguity​(org.antlr.v4.runtime.Parser recognizer,
                                    org.antlr.v4.runtime.dfa.DFA dfa,
                                    int startIndex,
                                    int stopIndex,
                                    boolean exact,
                                    BitSet ambigAlts,
                                    org.antlr.v4.runtime.atn.ATNConfigSet configs)
        Specified by:
        reportAmbiguity in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        reportAmbiguity in class org.antlr.v4.runtime.BaseErrorListener