trap throwables coming from antlr code generation upon "gen action"