Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/gersonworks/xml/util/XMLPropertiesFormatException.java


1   /*
2    * XMLProperties library - A utility class which reads property lists from
3    * an XML document
4    * Copyright (C) 21 January 2004 Gerson Galang
5    * This library is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU Lesser General Public
7    * License as published by the Free Software Foundation; either
8    * version 2.1 of the License, or (at your option) any later version.
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 GNU
13   * Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public
16   * License along with this library; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18   * For any questions or suggestions, you can email me at :
19   * Email: gerson721@gawab.com
20  */
21  
22  package com.gersonworks.xml.util;
23  
24  import org.xml.sax.SAXException;
25  
26  /**
27   * Thrown to indicate that an error has occured while the XMLProperties
28   * file is being parsed.
29   *
30   * <p>Copyright: Copyright (c) 21 January 2004</p>
31   * @author Gerson Galang
32   * @version 1.0, 18 January 2004
33   */
34  public class XMLPropertiesFormatException extends SAXException {
35  
36    /**
37     * Creates an XMLPropertiesFormatException which wraps an existing exception.
38     *
39     * @param e exception to be wrapped
40     */
41    public XMLPropertiesFormatException(Exception e) {
42      super(e);
43    }
44  
45    /**
46     * Creates an XMLPropertiesFormatException with a detailed message.
47     *
48     * @param msg the detailed message.
49     */
50    public XMLPropertiesFormatException(String msg) {
51      super(msg);
52    }
53  
54    /**
55     * Creates an XMLPropertiesFormatException with a detailed message and a
56     * wrapped exception.
57     *
58     * @param msg the detailed message.
59     * @param e the exception to be wrapped.
60     */
61    public XMLPropertiesFormatException(String msg, Exception e) {
62      super(msg, e);
63    }
64  
65  }