com.sleepycat.util.IOExceptionWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of je Show documentation
Show all versions of je Show documentation
Berkley Database Java Edition - build and runtime support.
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2000, 2010 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;
}
}