01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2000,2008 Oracle. All rights reserved.
05: *
06: * $Id: IOExceptionWrapper.java,v 1.15.2.2 2008/01/07 15:14:21 cwl Exp $
07: */
08:
09: package com.sleepycat.util;
10:
11: import java.io.IOException;
12:
13: /**
14: * An IOException that can contain nested exceptions.
15: *
16: * @author Mark Hayes
17: */
18: public class IOExceptionWrapper extends IOException implements
19: ExceptionWrapper {
20:
21: private Throwable e;
22:
23: public IOExceptionWrapper(Throwable e) {
24:
25: super (e.getMessage());
26: this .e = e;
27: }
28:
29: /**
30: * @deprecated replaced by {@link #getCause}.
31: */
32: public Throwable getDetail() {
33:
34: return e;
35: }
36:
37: public Throwable getCause() {
38:
39: return e;
40: }
41: }
|