View Javadoc

1   /*--
2    Copyright 2001, 2002 Elliotte Rusty Harold.
3    All rights reserved.
4    This file is part of XIncluder, a Java class library for integrating XInclude
5    processing with SAX, DOM, and JDOM.
6    XIncluder is free software; you can redistribute it and/or modify
7    it under the terms of the GNU Lesser General Public License version 2.1
8    as published by the Free Software Foundation.
9    XIncluder is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU Lesser General Public License for more details.
13   You should have received a copy of the GNU Lesser General Public License
14   along with XIncluder; if not, write to the Free Software
15   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16   THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
17   WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18   OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19   DISCLAIMED.  IN NO EVENT SHALL ELLIOTTE RUSTY HAROLD OR ANY
20   OTHER CONTRIBUTORS TO THIS PACKAGE
21   BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
24   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
27   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28   SUCH DAMAGE.
29   */
30  package net.sf.tomp.xml.include;
31  
32  /***
33   * <p>
34   * A <code>CircularIncludeException</code> is thrown when an included document
35   * attempts to include itself or one of its ancestor documents.
36   * </p>
37   * 
38   * @author Elliotte Rusty Harold
39   * @version 1.0d9, July 4, 2002
40   */
41  public class CircularIncludeException extends XIncludeException {
42      /***
43       * Constructs a <code>CircularIncludeException</code> with
44       * <code>null</code> as its error detail message.
45       */
46      public CircularIncludeException() {
47      }
48  
49      /***
50       * Constructs a <code>CircularIncludeException</code> with the specified
51       * detail message. The error message string <code>message</code> can later
52       * be retrieved by the <code>{@link
53       * java.lang.Throwable#getMessage}</code>
54       * method of class <code>java.lang.Throwable</code>.
55       * 
56       * @param message the detail message.
57       */
58      public CircularIncludeException(String message) {
59          super(message);
60      }
61  }
62  
63  /*
64   * The contents of this file are subject to the Mozilla Public License Version
65   * 1.1 (the "License"); you may not use this file except in compliance with the
66   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
67   * Software distributed under the License is distributed on an "AS IS" basis,
68   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
69   * the specific language governing rights and limitations under the License. The
70   * Original Code is: all this file. The Initial Developer of the Original Code
71   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
72   */