IOException directly@Deprecated public class NestedIOException extends IOException
IOException that properly handles a root cause,
exposing the root cause just like NestedChecked/RuntimeException does.
Proper root cause handling was added to the standard IOException in
Java 6, which is why Spring originally introduced NestedIOException
for compatibility with versions prior to Java 6.
The similarity between this class and the NestedChecked/RuntimeException class is unavoidable, as this class needs to derive from IOException.
getMessage(),
Throwable.printStackTrace(),
NestedCheckedException,
NestedRuntimeException,
Serialized Form| Constructor and Description |
|---|
NestedIOException(String msg)
Deprecated.
Construct a
NestedIOException with the specified detail message. |
NestedIOException(String msg,
Throwable cause)
Deprecated.
Construct a
NestedIOException with the specified detail message
and nested exception. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Deprecated.
Return the detail message, including the message from the nested exception
if there is one.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NestedIOException(String msg)
NestedIOException with the specified detail message.msg - the detail message@Nullable public String getMessage()
getMessage in class Throwable