|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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.
The similarity between this class and the NestedChecked/RuntimeException class is unavoidable, as this class needs to derive from IOException and cannot derive from NestedCheckedException.
getMessage()
,
printStackTrace(java.io.PrintStream)
,
NestedCheckedException
,
NestedRuntimeException
,
Serialized FormConstructor Summary | |
---|---|
NestedIOException(String msg)
Construct a NestedServletException with the specified detail message. |
|
NestedIOException(String msg,
Throwable cause)
Construct a NestedServletException with the specified detail message
and nested exception. |
Method Summary | |
---|---|
Throwable |
getCause()
Return the nested cause, or null if none. |
String |
getMessage()
Return the detail message, including the message from the nested exception if there is one. |
void |
printStackTrace(PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream. |
void |
printStackTrace(PrintWriter pw)
Print the composite message and the embedded stack trace to the specified print writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NestedIOException(String msg)
NestedServletException
with the specified detail message.
msg
- the detail messagepublic NestedIOException(String msg, Throwable cause)
NestedServletException
with the specified detail message
and nested exception.
msg
- the detail messagecause
- the nested exceptionMethod Detail |
---|
public Throwable getCause()
public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
ps
- the print streampublic void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
pw
- the print writer
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |