public class

NestedIOException

extends IOException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ org.springframework.core.NestedIOException

Class Overview

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.

Summary

Public Constructors
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.
Public Methods
String getMessage()
Return the detail message, including the message from the nested exception if there is one.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NestedIOException (String msg)

Also: SpringCore

Construct a NestedIOException with the specified detail message.

Parameters
msg the detail message

public NestedIOException (String msg, Throwable cause)

Also: SpringCore

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

Parameters
msg the detail message
cause the nested exception

Public Methods

public String getMessage ()

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