Clover coverage report - groovy - 1.0-beta-7
Coverage timestamp: Wed Sep 29 2004 16:55:52 BST
file stats: LOC: 42   Methods: 2
NCLOC: 12   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
RuntimeParserException.java - 0% 0% 0%
coverage
 1   
 package org.codehaus.groovy.syntax.parser;
 2   
 
 3   
 import groovy.lang.GroovyRuntimeException;
 4   
 
 5   
 import org.codehaus.groovy.ast.ASTNode;
 6   
 import org.codehaus.groovy.syntax.SyntaxException;
 7   
 
 8   
 /** 
 9   
  * A helper class to allow parser exceptions to be thrown anywhere in the code. 
 10   
  * Should be replaced when no longer required.
 11   
  * 
 12   
  * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
 13   
  * @version $Revision: 1.2 $
 14   
  */ 
 15   
 public class RuntimeParserException extends GroovyRuntimeException {
 16   
     
 17  0
     public RuntimeParserException(String message, ASTNode node) {
 18  0
         super(message + ". Node: " + node, node);
 19   
     }
 20   
 
 21  0
     public void throwParserException() throws SyntaxException {
 22  0
         throw new SyntaxException(getMessage(), getNode().getLineNumber(), getNode().getColumnNumber());
 23   
     }
 24   
     
 25   
     /*
 26   
     private Token token;
 27   
 
 28   
     public RuntimeParserException(String message, Token token) {
 29   
         super(message);
 30   
         this.token = token;
 31   
     }
 32   
 
 33   
     public Token getToken() {
 34   
         return token;
 35   
     }
 36   
 
 37   
     public void throwParserException() throws SyntaxException {
 38   
         throw new TokenException(getMessage(), token);
 39   
     }
 40   
     */
 41   
 }
 42