forked from jasder/antlr
Catch specific RecognitionException instead of Exception
This commit is contained in:
parent
2c8ef6470f
commit
019ea15e3f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue