org.springframework.core

## 类 NestedIOException

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

- 所有已实现的接口:
    Serializable

      public class NestedIOException
      extends 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.

  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller
  另请参阅:
    `getMessage()`, `Throwable.printStackTrace()`, `NestedCheckedException`, `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.

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### NestedIOException

          public NestedIOException(String msg)

      Construct a `NestedIOException` with the specified detail message.
      参数:
        `msg` - the detail message

    - #### NestedIOException

          public NestedIOException(@Nullable
                                   String msg,
                                   @Nullable
                                   Throwable cause)

      Construct a `NestedIOException` with the specified detail message and nested exception.
      参数:
        `msg` - the detail message
        `cause` - the nested exception

  - ### 方法详细资料

    - #### getMessage

          @Nullable
          public String getMessage()

      Return the detail message, including the message from the nested exception if there is one.
      覆盖:
        `getMessage` 在类中 `Throwable`