1 package org.codehaus.groovy.syntax; 2 3 import groovy.lang.GroovyRuntimeException; 4 5 import org.codehaus.groovy.ast.ASTNode; 6 import org.codehaus.groovy.syntax.SyntaxException; 7 8 15 public class RuntimeParserException extends GroovyRuntimeException { 16 17 public RuntimeParserException(String message, ASTNode node) { 18 super(message + ".\nNode: " + node.getClass().getName(), node); 19 } 20 21 public void throwParserException() throws SyntaxException { 22 throw new SyntaxException(getMessage(), getNode().getLineNumber(), getNode().getColumnNumber()); 23 } 24 25 41 } 42 | Popular Tags |