类 DecodingException
- 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.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 aCodecException
such as a configuration issue that aDecoder
may choose to raise.For example in server web application, a
DecodingException
would translate to a response with a 400 (bad input) status whileCodecException
would translate to 500 (server error) status.
构造器概要
构造器 构造器 说明 DecodingException(String msg)
Create a new DecodingException.DecodingException(String msg, Throwable cause)
Create a new DecodingException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
DecodingException
public DecodingException(String msg)
Create a new DecodingException.- 参数:
msg
- the detail message
DecodingException
public DecodingException(String msg, @Nullable Throwable cause)
Create a new DecodingException.- 参数:
msg
- the detail messagecause
- root cause for the exception, if any