Coverage Report - org.simpleframework.xml.load.AttributeException
 
Classes in this File Line Coverage Branch Coverage Complexity
AttributeException
50%
2/4
N/A
0
 
 1  
 /*
 2  
  * AttributeException.java July 2006
 3  
  *
 4  
  * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * This library is free software; you can redistribute it and/or
 7  
  * modify it under the terms of the GNU Lesser General Public
 8  
  * License as published by the Free Software Foundation.
 9  
  *
 10  
  * This library is distributed in the hope that it will be useful,
 11  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 13  
  * GNU Lesser General Public License for more details.
 14  
  *
 15  
  * You should have received a copy of the GNU Lesser General 
 16  
  * Public License along with this library; if not, write to the 
 17  
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
 18  
  * Boston, MA  02111-1307  USA
 19  
  */
 20  
 
 21  
 package org.simpleframework.xml.load;
 22  
 
 23  
 /**
 24  
  * The <code>AttributeException</code> is used to represent conditions 
 25  
  * when an XML attribute is in an invalid state. Typically this is 
 26  
  * used when and attribute cannot be serialized or deserialized. Such 
 27  
  * a condition can arise when an attribute exists within the source 
 28  
  * XML that does not match the schema class. For serialization this
 29  
  * exception is thrown if a required field is null.
 30  
  * 
 31  
  * @author Niall Gallagher
 32  
  */
 33  
 public class AttributeException extends PersistenceException {
 34  
 
 35  
    /**
 36  
     * Constructor for the <code>AttributeException</code> object. This
 37  
     * constructor takes a format string an a variable number of object
 38  
     * arguments, which can be inserted into the format string. 
 39  
     * 
 40  
     * @param text a format string used to present the error message
 41  
     * @param list a list of arguments to insert into the string
 42  
     */
 43  
    public AttributeException(String text, Object... list) {
 44  2
       super(text, list);           
 45  2
    }        
 46  
 
 47  
    /**
 48  
     * Constructor for the <code>AttributeException</code> object. This
 49  
     * constructor takes a format string an a variable number of object
 50  
     * arguments, which can be inserted into the format string. 
 51  
     * 
 52  
     * @param cause the source exception this is used to represent
 53  
     * @param text a format string used to present the error message
 54  
     * @param list a list of arguments to insert into the string 
 55  
     */
 56  
    public AttributeException(Throwable cause, String text, Object... list) {
 57  0
       super(cause, text, list);           
 58  0
    }
 59  
 }