Coverage Report - org.simpleframework.xml.strategy.CycleException
 
Classes in this File Line Coverage Branch Coverage Complexity
CycleException
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * CycleException.java April 2007
 3  
  *
 4  
  * Copyright (C) 2007, 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.strategy;
 20  
 
 21  
 import org.simpleframework.xml.core.PersistenceException;
 22  
 
 23  
 /**
 24  
  * The <code>CycleException</code> is thrown when an invalid cycle 
 25  
  * is found when deserializing an object from an XML document. This
 26  
  * usually indicates the either the XML has been edited incorrectly
 27  
  * or has been corrupted. Conditions that this exception is thrown
 28  
  * are when there is an invalid reference or a duplicate identifier. 
 29  
  * 
 30  
  * @author Niall Gallagher
 31  
  * 
 32  
  * @see org.simpleframework.xml.strategy.CycleStrategy
 33  
  */
 34  
 public class CycleException extends PersistenceException {
 35  
    
 36  
    /**
 37  
     * Constructor for the <code>CycleException</code> object. This  
 38  
     * constructor takes a format string an a variable number of 
 39  
     * object arguments, which can be inserted into the format string. 
 40  
     * 
 41  
     * @param text a format string used to present the error message
 42  
     * @param list a list of arguments to insert into the string
 43  
     */
 44  
    public CycleException(String text, Object... list) {
 45  0
       super(text, list);           
 46  0
    }        
 47  
    
 48  
    /**
 49  
     * Constructor for the <code>CycleException</code> object. This 
 50  
     * constructor takes a format string an a variable number of 
 51  
     * object arguments, which can be inserted into the format string. 
 52  
     * 
 53  
     * @param cause the source exception this is used to represent
 54  
     * @param text a format string used to present the error message
 55  
     * @param list a list of arguments to insert into the string 
 56  
     */
 57  
    public CycleException(Throwable cause, String text, Object... list) {
 58  0
       super(cause, text, list);           
 59  0
    }
 60  
 }