Eric Ouellet
Eric Ouellet

Reputation: 11754

What is: Antlr.Runtime.NoViableAltException - How to continue to break on exception but this one?

I'm using the CodePlex library NCalc and I'm getting the exception:

Antlr.Runtime.NoViableAltException

I expected an exception because I know my expression is not valid but I wonder where does that exception come from and how to mark it as "not break" in the "Exception" window of "Debug" menu. But I still want to break on all other exception.

Thanks, Eric

Upvotes: 1

Views: 949

Answers (1)

Sam Harwell
Sam Harwell

Reputation: 99859

These exceptions are thrown by the ANTLR Runtime Library when it detects an error in the input.

If you install the ANTLR Language Support extension for Visual Studio, it will add the ANTLR-specific exception types to the Exceptions... dialog, and you can configure them as you would configure any others.

Upvotes: 1

Related Questions