1 18 package org.codehaus.groovy.antlr; 19 20 import antlr.collections.AST; 21 import org.codehaus.groovy.syntax.ParserException; 22 23 28 public class ASTParserException extends ParserException { 29 private AST ast; 30 31 public ASTParserException(ASTRuntimeException e) { 32 super(e.getMessage(), e, e.getLine(), e.getColumn()); 33 this.ast = e.getAst(); 34 } 35 36 public ASTParserException(String message, ASTRuntimeException e) { 37 super(message, e, e.getLine(), e.getColumn()); 38 this.ast = e.getAst(); 39 } 40 41 public AST getAst() { 42 return ast; 43 } 44 } 45 | Popular Tags |