Clover coverage report - PicoContainer - 1.0
Coverage timestamp: Sat Jun 5 2004 21:34:14 EDT
file stats: LOC: 55   Methods: 3
NCLOC: 15   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
PicoVerificationException.java - 66.7% 66.7% 66.7%
coverage coverage
 1   
 /*****************************************************************************
 2   
  * Copyright (C) PicoContainer Organization. All rights reserved.            *
 3   
  * ------------------------------------------------------------------------- *
 4   
  * The software in this package is published under the terms of the BSD      *
 5   
  * style license a copy of which has been included with this distribution in *
 6   
  * the LICENSE.txt file.                                                     *
 7   
  *                                                                           *
 8   
  * Original code by                                                          *
 9   
  *****************************************************************************/
 10   
 package org.picocontainer;
 11   
 
 12   
 import java.util.ArrayList;
 13   
 import java.util.List;
 14   
 
 15   
 /**
 16   
  * Subclass of {@link PicoException} that is thrown when there is a problem with the internal state of the container or
 17   
  * another part of the PicoContainer API, for example when a needed dependency cannot be resolved.
 18   
  * 
 19   
  * @version $Revision: 1.6 $
 20   
  * @since 1.0
 21   
  */
 22   
 public class PicoVerificationException extends PicoException {
 23   
     /**
 24   
      * The exceptions that caused this one.
 25   
      */
 26   
     private List nestedExceptions = new ArrayList();
 27   
 
 28   
     /**
 29   
      * Construct a new exception with a list of exceptions that caused this one.
 30   
      * 
 31   
      * @param nestedExceptions the exceptions that caused this one.
 32   
      */
 33  2
     public PicoVerificationException(final List nestedExceptions) {
 34  2
         this.nestedExceptions = nestedExceptions;
 35   
     }
 36   
 
 37   
     /**
 38   
      * Retrieve the list of exceptions that caused this one.
 39   
      * 
 40   
      * @return the list of exceptions that caused this one.
 41   
      */
 42  2
     public List getNestedExceptions() {
 43  2
         return nestedExceptions;
 44   
     }
 45   
 
 46   
     /**
 47   
      * Return a string listing of all the messages associated with the exceptions that caused this one.
 48   
      * 
 49   
      * @return a string listing of all the messages associated with the exceptions that caused this one.
 50   
      */
 51  0
     public String getMessage() {
 52  0
         return nestedExceptions.toString();
 53   
     }
 54   
 }
 55