public static class Resource.IOWrappedException
extends java.io.IOException
Since save and load throw an IO Exception, it may be convenient for an implementation to wrap another exception in order to throw it as an IO exception.
Constructor and Description |
---|
Resource.IOWrappedException(java.lang.Exception exception)
Creates an instance which wraps the given exception.
|
Resource.IOWrappedException(java.lang.Throwable throwable)
Creates an instance which wraps the given exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getWrappedException()
Deprecated.
in 2.2. Use
Throwable.getCause() instead. |
public Resource.IOWrappedException(java.lang.Exception exception)
exception
- the exception to wrap.public Resource.IOWrappedException(java.lang.Throwable throwable)
throwable
- the exception to wrap.