1 package antlr;2 3 /* ANTLR Translator Generator4 * Project led by Terence Parr at http://www.jGuru.com5 * Software rights: http://www.antlr.org/RIGHTS.html6 *7 * $Id: //depot/code/org.antlr/main/main/antlr/ExceptionHandler.java#5 $8 */9 10 class ExceptionHandler {11 // Type of the ANTLR exception class to catch and the variable decl12 protected Token exceptionTypeAndName;13 // The action to be executed when the exception is caught14 protected Token action;15 16 17 public ExceptionHandler(Token exceptionTypeAndName_,18 Token action_) {19 exceptionTypeAndName = exceptionTypeAndName_;20 action = action_;21 }22 }23