Coverage Report - org.simpleframework.xml.core.AttributeException
 
Classes in this File Line Coverage Branch Coverage Complexity
AttributeException
50%
2/4
N/A
1
 
 1  
 /*
 2  
  * AttributeException.java July 2006
 3  
  *
 4  
  * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 15  
  * implied. See the License for the specific language governing 
 16  
  * permissions and limitations under the License.
 17  
  */
 18  
 
 19  
 package org.simpleframework.xml.core;
 20  
 
 21  
 /**
 22  
  * The <code>AttributeException</code> is used to represent conditions 
 23  
  * when an XML attribute is in an invalid state. Typically this is 
 24  
  * used when and attribute cannot be serialized or deserialized. Such 
 25  
  * a condition can arise when an attribute exists within the source 
 26  
  * XML that does not match the schema class. For serialization this
 27  
  * exception is thrown if a required field is null.
 28  
  * 
 29  
  * @author Niall Gallagher
 30  
  */
 31  
 public class AttributeException extends PersistenceException {
 32  
 
 33  
    /**
 34  
     * Constructor for the <code>AttributeException</code> object. This
 35  
     * constructor takes a format string an a variable number of object
 36  
     * arguments, which can be inserted into the format string. 
 37  
     * 
 38  
     * @param text a format string used to present the error message
 39  
     * @param list a list of arguments to insert into the string
 40  
     */
 41  
    public AttributeException(String text, Object... list) {
 42  7
       super(text, list);           
 43  7
    }        
 44  
 
 45  
    /**
 46  
     * Constructor for the <code>AttributeException</code> object. This
 47  
     * constructor takes a format string an a variable number of object
 48  
     * arguments, which can be inserted into the format string. 
 49  
     * 
 50  
     * @param cause the source exception this is used to represent
 51  
     * @param text a format string used to present the error message
 52  
     * @param list a list of arguments to insert into the string 
 53  
     */
 54  
    public AttributeException(Throwable cause, String text, Object... list) {
 55  0
       super(cause, text, list);           
 56  0
    }
 57  
 }