01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management.modelmbean;
09:
10: /**
11: * This exception is thrown when an XML formatted string is being parsed into ModelMBean objects
12: * or when XML formatted strings are being created from ModelMBean objects.
13: *
14: * It is also used to wrapper exceptions from XML parsers that may be used.
15: *
16: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
17: */
18:
19: public class XMLParseException extends Exception {
20:
21: public XMLParseException() {
22: super ("XML Parse Exception.");
23: }
24:
25: public XMLParseException(String s) {
26: super ("XML Parse Exception: " + s);
27: }
28:
29: public XMLParseException(Exception exception, String s) {
30: super ("XML Parse Exception: " + s + ":" + exception.toString());
31: }
32:
33: }
|