KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > util > IOException2


1 package hudson.util;
2
3 import java.io.IOException JavaDoc;
4
5 /**
6  * {@link IOException} with linked exception.
7  *
8  * @author Kohsuke Kawaguchi
9  */

10 public class IOException2 extends IOException JavaDoc {
11     private final Throwable JavaDoc cause;
12
13     public IOException2(Throwable JavaDoc cause) {
14         super(cause.getMessage());
15         this.cause = cause;
16     }
17
18     public IOException2(String JavaDoc s, Throwable JavaDoc cause) {
19         super(s);
20         this.cause = cause;
21     }
22
23     public Throwable JavaDoc getCause() {
24         return cause;
25     }
26 }
27
Popular Tags