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