01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: class ExceptionHandler {
09: // Type of the ANTLR exception class to catch and the variable decl
10: protected Token exceptionTypeAndName;
11: // The action to be executed when the exception is caught
12: protected Token action;
13:
14: public ExceptionHandler(Token exceptionTypeAndName_, Token action_) {
15: exceptionTypeAndName = exceptionTypeAndName_;
16: action = action_;
17: }
18: }
|