1 Clazz.declarePackage ("org.xml.sax");
2 Clazz.load (["java.lang.Exception"], "org.xml.sax.SAXException", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
5 Clazz.instantialize (this, arguments);
6 }, org.xml.sax, "SAXException", Exception);
7 Clazz.makeConstructor (c$,
9 Clazz.superConstructor (this, org.xml.sax.SAXException);
10 this.exception = null;
12 Clazz.makeConstructor (c$,
14 Clazz.superConstructor (this, org.xml.sax.SAXException, [message]);
15 this.exception = null;
17 Clazz.makeConstructor (c$,
19 Clazz.superConstructor (this, org.xml.sax.SAXException);
22 Clazz.makeConstructor (c$,
23 function (message, e) {
24 Clazz.superConstructor (this, org.xml.sax.SAXException, [message]);
27 Clazz.defineMethod (c$, "getMessage",
29 var message = Clazz.superCall (this, org.xml.sax.SAXException, "getMessage", []);
30 if (message == null && this.exception != null) {
31 return this.exception.getMessage ();
35 Clazz.defineMethod (c$, "getException",
37 return this.exception;
39 Clazz.defineMethod (c$, "toString",
41 if (this.exception != null) {
42 return this.exception.toString ();
44 return Clazz.superCall (this, org.xml.sax.SAXException, "toString", []);