/*- * 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; } }