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