1 package persistence.antlr; 2 3 /* ANTLR Translator Generator 4 * Project led by Terence Parr at http://www.jGuru.com 5 * Software rights: http://www.antlr.org/license.html 6 * 7 */ 8 9 class ExceptionHandler { 10 // Type of the ANTLR exception class to catch and the variable decl 11 protected Token exceptionTypeAndName; 12 // The action to be executed when the exception is caught 13 protected Token action; 14 15 16 public ExceptionHandler(Token exceptionTypeAndName_, 17 Token action_) { 18 exceptionTypeAndName = exceptionTypeAndName_; 19 action = action_; 20 } 21 } 22