KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > igfay > jfig > XMLParseException


1 /*
2 * XMLParseException.java
3 *
4 */

5 package org.igfay.jfig;
6
7
8 /**
9  * Class <code>XMLParseException</code> is used to indicate an error parsing an xml document
10  *
11  * @author Jason Borro
12  * @version 1.00 7/16/1999
13  */

14 public class XMLParseException extends Exception JavaDoc {
15
16     private static final long serialVersionUID = 1L;
17
18     /**
19      * Constructs a <code>XMLParseException</code> with simple message
20      */

21     public XMLParseException() {
22         super("The XML document could not be parsed. Verify it is well-formed.");
23     }
24
25     /**
26      * Constructs a <code>XMLParseException</code> with a detailed message
27      *
28      * @param String error message
29      */

30     public XMLParseException(String JavaDoc xml) {
31         super(xml);
32     }
33
34     /**
35      * Constructs a <code>XMLParseException</code> with a previous error
36      *
37      * @param String error message
38      */

39     public XMLParseException(Exception JavaDoc exc) {
40         //TODO revise for jdk 1.4
41
super(exc.getMessage());
42         //super(exc);
43
}
44 }
45
46
Popular Tags