spring-framework / org.springframework.core / NestedIOException

NestedIOException

open class NestedIOException : IOException

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.

Author
Juergen Hoeller

Since
2.0

See Also
#getMessage#printStackTraceorg.springframework.core.NestedCheckedExceptionorg.springframework.core.NestedRuntimeException

Constructors

<init>

NestedIOException(msg: String)

Construct a NestedIOException with the specified detail message.

NestedIOException(msg: String, cause: Throwable)

Construct a NestedIOException with the specified detail message and nested exception.

Properties

message

open val message: String

Return the detail message, including the message from the nested exception if there is one.