diff options
| author | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-07-20 20:00:05 +0100 |
|---|---|---|
| committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-07-20 20:00:05 +0100 |
| commit | 3ef782d3745ea8f25a3151561a3cfb882190210e (patch) | |
| tree | 86b9c2f5fde051dd0bced99b3fc9f5a3ba08db69 /lang/java/src/com/sleepycat/util/IOExceptionWrapper.java | |
| download | berkeleydb-3ef782d3745ea8f25a3151561a3cfb882190210e.tar.gz | |
Tarball conversion
Diffstat (limited to 'lang/java/src/com/sleepycat/util/IOExceptionWrapper.java')
| -rw-r--r-- | lang/java/src/com/sleepycat/util/IOExceptionWrapper.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lang/java/src/com/sleepycat/util/IOExceptionWrapper.java b/lang/java/src/com/sleepycat/util/IOExceptionWrapper.java new file mode 100644 index 00000000..8a1502d1 --- /dev/null +++ b/lang/java/src/com/sleepycat/util/IOExceptionWrapper.java @@ -0,0 +1,43 @@ +/*- + * See the file LICENSE for redistribution information. + * + * Copyright (c) 2000, 2012 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; + } +} |
