Coverage Report - org.simpleframework.xml.core.ConstructorException
 
Classes in this File Line Coverage Branch Coverage Complexity
ConstructorException
50%
2/4
N/A
1
 
 1  
 /*
 2  
  * ConstructorException.java July 2009
 3  
  *
 4  
  * Copyright (C) 2009, 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>ConstructorException</code> is used to represent any
 23  
  * errors where an annotated constructor parameter is invalid. This
 24  
  * is thrown when constructor injection is used and the schema is
 25  
  * invalid. Invalid schemas are schemas where an annotated method
 26  
  * or field does not match an annotated constructor parameter.
 27  
  * 
 28  
  * @author Niall Gallagher
 29  
  */
 30  
 public class ConstructorException extends PersistenceException {
 31  
 
 32  
    /**
 33  
     * Constructor for the <code>ConstructorException</code> object. 
 34  
     * This constructor takes a format string an a variable number of
 35  
     *  object arguments, which can be inserted into the format string. 
 36  
     * 
 37  
     * @param text a format string used to present the error message
 38  
     * @param list a list of arguments to insert into the string
 39  
     */
 40  
    public ConstructorException(String text, Object... list) {
 41  11
       super(text, list);           
 42  11
    }        
 43  
 
 44  
    /**
 45  
     * Constructor for the <code>ConstructorException</code> object.
 46  
     * This constructor takes a format string an a variable number of 
 47  
     * object arguments, which can be inserted into the format string. 
 48  
     * 
 49  
     * @param cause the source exception this is used to represent
 50  
     * @param text a format string used to present the error message
 51  
     * @param list a list of arguments to insert into the string 
 52  
     */
 53  
    public ConstructorException(Throwable cause, String text, Object... list) {
 54  0
       super(cause, text, list);           
 55  0
    }
 56  
 }