01: package com.sun.istack;
02:
03: import javax.xml.stream.XMLStreamException;
04: import javax.xml.stream.Location;
05:
06: /**
07: * {@link XMLStreamException} that properly handles exception chaining.
08: *
09: * @author Kohsuke Kawaguchi
10: */
11: public class XMLStreamException2 extends XMLStreamException {
12: public XMLStreamException2(String msg) {
13: super (msg);
14: }
15:
16: public XMLStreamException2(Throwable th) {
17: super (th);
18: }
19:
20: public XMLStreamException2(String msg, Throwable th) {
21: super (msg, th);
22: }
23:
24: public XMLStreamException2(String msg, Location location) {
25: super (msg, location);
26: }
27:
28: public XMLStreamException2(String msg, Location location,
29: Throwable th) {
30: super (msg, location, th);
31: }
32:
33: /**
34: * {@link XMLStreamException} doesn't return the correct cause.
35: */
36: public Throwable getCause() {
37: return getNestedException();
38: }
39: }
|