类 DecodingException

  • 所有已实现的接口:
    Serializable

    public class DecodingException
    extends CodecException
    Indicates an issue with decoding the input stream with a focus on content related issues such as a parse failure. As opposed to more general I/O errors, illegal state, or a CodecException such as a configuration issue that a Decoder may choose to raise.

    For example in server web application, a DecodingException would translate to a response with a 400 (bad input) status while CodecException would translate to 500 (server error) status.

    从以下版本开始:
    5.0
    作者:
    Rossen Stoyanchev
    另请参阅:
    Decoder, 序列化表格
    • 构造器详细资料

      • DecodingException

        public DecodingException​(String msg)
        Create a new DecodingException.
        参数:
        msg - the detail message