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 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(),
org.springframework.core.NestedCheckedException,
org.springframework.core.NestedRuntimeException,
序列化表格| 构造器和说明 |
|---|
NestedIOException(String msg)
Construct a
NestedIOException with the specified detail message. |
NestedIOException(String msg,
Throwable cause)
Construct a
NestedIOException with the specified detail message
and nested exception. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
public NestedIOException(String msg)
NestedIOException with the specified detail message.msg - the detail messagepublic String getMessage()
getMessage 在类中 ThrowableCopyright © 2020. All rights reserved.