Catch specific RecognitionException instead of Exception

This commit is contained in:
Sam Harwell 2012-02-23 16:45:35 -06:00
parent 2c8ef6470f
commit 019ea15e3f
1 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@ import org.antlr.v4.tool.ast.*;
import org.stringtemplate.v4.*;
import java.util.*;
import org.antlr.runtime.RecognitionException;
/** This receives events from SourceGenTriggers.g and asks factory to do work.
* Then runs extensions in order on resulting SrcOps to get final list.
@ -274,7 +275,7 @@ public class OutputModelController {
// walk AST of rule alts/elements
function.code = DefaultOutputModelFactory.list(walker.block(null, null));
}
catch (Exception e){
catch (org.antlr.runtime.RecognitionException e){
e.printStackTrace(System.err);
}