Coverage Report - org.simpleframework.xml.core.RootException
 
Classes in this File Line Coverage Branch Coverage Complexity
RootException
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * RootException.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>RootException</code> is thrown if the <code>Root</code>
 23  
  * annotation is missing from a root object that is to be serialized
 24  
  * or deserialized. Not all objects require a root annotation, only
 25  
  * those objects that are to be deserialized to or serialized from
 26  
  * an <code>ElementList</code> field and root objects that are to be
 27  
  * deserialized or serialized directly from the persister.
 28  
  * 
 29  
  * @author Niall Gallagher
 30  
  */
 31  
 public class RootException extends PersistenceException {
 32  
    
 33  
    /**
 34  
     * Constructor for the <code>RootException</code> exception. 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 RootException(String text, Object... list) {
 42  0
       super(text, list);           
 43  0
    }        
 44  
 
 45  
    /**
 46  
     * Constructor for the <code>RootException</code> exception. 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 RootException(Throwable cause, String text, Object... list) {
 55  0
       super(cause, text, list);           
 56  0
    }
 57  
 }