|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.springframework.core.NestedIOException
public class NestedIOException
Subclass of IOException
that properly handles a root cause,
exposing the root cause just like NestedChecked/RuntimeException does.
Proper root cause handling has not been added to standard IOException before Java 6, which is why we need to do it ourselves for Java 5 compatibility purposes.
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 FormConstructor Summary | |
---|---|
NestedIOException(java.lang.String msg)
Construct a NestedIOException with the specified detail message. |
|
NestedIOException(java.lang.String msg,
java.lang.Throwable cause)
Construct a NestedIOException with the specified detail message
and nested exception. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Return the detail message, including the message from the nested exception if there is one. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NestedIOException(java.lang.String msg)
NestedIOException
with the specified detail message.
msg
- the detail messagepublic NestedIOException(java.lang.String msg, java.lang.Throwable cause)
NestedIOException
with the specified detail message
and nested exception.
msg
- the detail messagecause
- the nested exceptionMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
Spring for Android | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |