Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 59   Methods: 6
NCLOC: 34   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ConfigurationException.java - 14.3% 16.7% 15.4%
coverage coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.config;
 8   
 9    import org.jboss.cache.CacheException;
 10   
 11    import java.util.ArrayList;
 12    import java.util.List;
 13   
 14    /**
 15    * An exception that represents an error in the configuration. This could be a parsing error or a logical error involving clashing
 16    * configuration options or missing mandatory configuration elements.
 17    *
 18    * @author <a href="mailto:manik@jboss.org">Manik Surtani (manik@jboss.org)</a>
 19    * @see org.jboss.cache.config.Configuration
 20    * @see org.jboss.cache.CacheFactory
 21    */
 22    public class ConfigurationException extends CacheException
 23    {
 24   
 25    private static final long serialVersionUID = -5576382839360927955L;
 26   
 27    private List<String> erroneousAttributes = new ArrayList<String>();
 28   
 29  0 public ConfigurationException(Exception e)
 30    {
 31  0 super(e);
 32    }
 33   
 34  6 public ConfigurationException(String string)
 35    {
 36  6 super(string);
 37    }
 38   
 39  0 public ConfigurationException(String string, String erroneousAttribute)
 40    {
 41  0 super(string);
 42  0 erroneousAttributes.add(erroneousAttribute);
 43    }
 44   
 45  0 public ConfigurationException(String string, Throwable throwable)
 46    {
 47  0 super(string, throwable);
 48    }
 49   
 50  0 public List<String> getErroneousAttributes()
 51    {
 52  0 return erroneousAttributes;
 53    }
 54   
 55  0 public void addErroneousAttribute(String s)
 56    {
 57  0 erroneousAttributes.add(s);
 58    }
 59    }