1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 2000,2008 Oracle.  All rights reserved.
5 *
6 * $Id: IOExceptionWrapper.java,v 12.7 2008/01/08 20:58:39 bostic Exp $
7 */
8
9package com.sleepycat.util;
10
11import java.io.IOException;
12
13/**
14 * An IOException that can contain nested exceptions.
15 *
16 * @author Mark Hayes
17 */
18public class IOExceptionWrapper
19    extends IOException implements 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}
42