blob: 20b97c7a64e4c0657dbc0007cf4cbef2675cfcfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2000, 2015 Oracle and/or its affiliates. All rights reserved.
*
*/
package com.sleepycat.util;
import java.io.IOException;
/**
* An IOException that can contain nested exceptions.
*
* @author Mark Hayes
*/
public class IOExceptionWrapper
extends IOException implements ExceptionWrapper {
private static final long serialVersionUID = 753416466L;
private Throwable e;
public IOExceptionWrapper(Throwable e) {
super(e.getMessage());
this.e = e;
}
/**
* @deprecated replaced by {@link #getCause}.
*/
public Throwable getDetail() {
return e;
}
@Override
public Throwable getCause() {
return e;
}
}
|