01: package com.sun.istack;
02:
03: import org.xml.sax.SAXException;
04:
05: /**
06: * {@link SAXException} that handles exception chaining correctly.
07: *
08: * @author Kohsuke Kawaguchi
09: * @since 2.0 FCS
10: */
11: public class SAXException2 extends SAXException {
12: public SAXException2(String message) {
13: super (message);
14: }
15:
16: public SAXException2(Exception e) {
17: super (e);
18: }
19:
20: public SAXException2(String message, Exception e) {
21: super (message, e);
22: }
23:
24: public Throwable getCause() {
25: return getException();
26: }
27: }
|