Clover coverage report - groovy - 1.0-beta-7
Coverage timestamp: Wed Sep 29 2004 16:55:52 BST
file stats: LOC: 47   Methods: 5
NCLOC: 34   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
ReadException.java 0% 0% 0% 0%
coverage
 1   
 package org.codehaus.groovy.syntax;
 2   
 
 3   
 import org.codehaus.groovy.GroovyException;
 4   
 import java.io.IOException;
 5   
 
 6   
 /**
 7   
  *  Encapsulates non-specific i/o exceptions.
 8   
  */
 9   
 
 10   
 public class ReadException extends GroovyException
 11   
 {
 12   
     private IOException cause = null;
 13   
 
 14  0
     public ReadException( IOException cause )
 15   
     {
 16  0
         super();
 17  0
         this.cause = cause;
 18   
     }
 19   
 
 20  0
     public ReadException( String message, IOException cause )
 21   
     {
 22  0
         super( message );
 23  0
         this.cause = cause;
 24   
     }
 25   
 
 26  0
     public IOException getIOCause()
 27   
     {
 28  0
         return this.cause;
 29   
     }
 30   
 
 31  0
     public String toString()
 32   
     {
 33  0
        String message = super.getMessage();
 34  0
        if( message == null || message.trim() == "" )
 35   
        {
 36  0
           message = cause.getMessage();
 37   
        }
 38   
 
 39  0
        return message;
 40   
     }
 41   
 
 42  0
     public String getMessage()
 43   
     {
 44  0
        return toString();
 45   
     }
 46   
 }
 47