Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1089

STELLAR Shell: Handle NoViableAltException with better information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: To Do
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Antlr's NoViableAltException is thrown when Antlr cannot figure out what to do when building the expression tree. This happens when the grammar is improperly posed.

      For example:
      > TO_UPPER(IN)

      Where IN is a reserved phrase, but is not posed correctly.

      This is basically an invalid syntax exception. But buried in the cause of a ParseException, it really is not helpful.

      The shell should find the ParseException cause, and if it is this exception, output a better message

      Attachments

        Activity

          People

            Unassigned Unassigned
            otto Otto Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: