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

Ed Sykes ed.sykes at gmail.com
Thu Feb 21 06:26:44 PST 2008


Just to be super clear I should just clarify that the 'using' workaround
that i describe below results in the expections being caught via:

catch(Exception e)
{

}

On Thu, Feb 21, 2008 at 2:23 PM, Ed Sykes <ed.sykes at gmail.com> wrote:

> I mean that the exception is uncaught and ends up in the unhandled user
> exception code of the CLR.
>
>
> On Thu, Feb 21, 2008 at 2:21 PM, Johannes Luber <jaluber at gmx.de> wrote:
>
> > 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080221/5e0ed3b5/attachment.html 


More information about the antlr-interest mailing list