[antlr-interest] Problem catching exceptions in c# generated code

Johannes Luber jaluber at gmx.de
Thu Feb 21 06:21:48 PST 2008


Ed Sykes schrieb:
> Hi everyone,
> 
> first post here, so hello everyone :)
> 
> I've been using antlr with the c# generator for a month or so and i have 
> a problem that i now need to solve. The problem is that despite 
> surrounding the calls to the expression parser in a try catch i don't 
> seem to be able to catch the exceptions thrown. e.g.:

Could it be that exceptions are caught elsewhere in the ANTLR code, so 
the exception never arrives at your catch clause? Or do you mean that 
despite having a catch clause, the exception goes further up in the call 
chain?

Johannes


More information about the antlr-interest mailing list