01: /*
02: * XMLParseException.java
03: *
04: */
05: package org.igfay.jfig;
06:
07: /**
08: * Class <code>XMLParseException</code> is used to indicate an error parsing an xml document
09: *
10: * @author Jason Borro
11: * @version 1.00 7/16/1999
12: */
13: public class XMLParseException extends Exception {
14:
15: private static final long serialVersionUID = 1L;
16:
17: /**
18: * Constructs a <code>XMLParseException</code> with simple message
19: */
20: public XMLParseException() {
21: super (
22: "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 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 exc) {
40: //TODO revise for jdk 1.4
41: super (exc.getMessage());
42: //super(exc);
43: }
44: }
|