01: package com.sun.istack;
02:
03: import org.xml.sax.SAXParseException;
04: import org.xml.sax.Locator;
05:
06: /**
07: * {@link SAXParseException} that handles exception chaining correctly.
08: *
09: * @author Kohsuke Kawaguchi
10: * @since 2.0 FCS
11: */
12: public class SAXParseException2 extends SAXParseException {
13: public SAXParseException2(String message, Locator locator) {
14: super (message, locator);
15: }
16:
17: public SAXParseException2(String message, Locator locator,
18: Exception e) {
19: super (message, locator, e);
20: }
21:
22: public SAXParseException2(String message, String publicId,
23: String systemId, int lineNumber, int columnNumber) {
24: super (message, publicId, systemId, lineNumber, columnNumber);
25: }
26:
27: public SAXParseException2(String message, String publicId,
28: String systemId, int lineNumber, int columnNumber,
29: Exception e) {
30: super (message, publicId, systemId, lineNumber, columnNumber, e);
31: }
32:
33: public Throwable getCause() {
34: return getException();
35: }
36: }
|