If you look at the class hierarchy, an Error is a Throwable which should not, but can, be caught. Having a separate Error class distinct from Exception allows you to use the idiom catch (Exception e) in your code, leaving Errors uncaught. I'm not sure of the equivalent in C#. --Loring
----- Original Message ---- > From: Johannes Luber <[EMAIL PROTECTED]> > To: ANTLR-dev Dev <[email protected]> > Sent: Wednesday, July 2, 2008 2:23:10 PM > Subject: [antlr-dev] Translation of Java Error to C# > > Hi! > > I've stumbled over the class Error in Ter's code > (TokenRewriteStream.java for the curious). Looking at the page of the > JDK it only says, that Errors shouldn't be caught. This doesn't help me > in deciding what the equivalent in C# is - Exception? InvalidOperation? > Has anyone a good idea? > > Johannes > _______________________________________________ > antlr-dev mailing list > [email protected] > http://www.antlr.org:8080/mailman/listinfo/antlr-dev _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org:8080/mailman/listinfo/antlr-dev
