org.springframework.core.codec

## 类 EncodingException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.springframework.core.NestedRuntimeException
        - - org.springframework.core.codec.CodecException
          - - org.springframework.core.codec.EncodingException

- 所有已实现的接口:
    Serializable

      public class EncodingException
      extends CodecException

  Indicates an issue with encoding the input Object stream with a focus on not being able to encode Objects. As opposed to a more general I/O errors or a `CodecException` such as a configuration issue that an `Encoder` may also choose to raise.
  从以下版本开始:
    5.0
  作者:
    Rossen Stoyanchev
  另请参阅:
    `Encoder`, 序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `EncodingException(String msg)` Create a new EncodingException.
    `EncodingException(String msg, Throwable cause)` Create a new EncodingException.

  - ### 方法概要

    - ### 从类继承的方法 org.springframework.core.NestedRuntimeException

      `contains, getMessage, getMostSpecificCause, getRootCause`

    - ### 从类继承的方法 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`

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

    - #### EncodingException

          public EncodingException(String msg)

      Create a new EncodingException.
      参数:
        `msg` - the detail message

    - #### EncodingException

          public EncodingException(String msg,
                                   @Nullable
                                   Throwable cause)

      Create a new EncodingException.
      参数:
        `msg` - the detail message
        `cause` - root cause for the exception, if any