public class DecodingException extends CodecException
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.
Decoder,
Serialized Form| Constructor and Description |
|---|
DecodingException(java.lang.String msg)
Create a new DecodingException.
|
DecodingException(java.lang.String msg,
java.lang.Throwable cause)
Create a new DecodingException.
|
contains, getMessage, getMostSpecificCause, getRootCausepublic DecodingException(java.lang.String msg)
msg - the detail messagepublic DecodingException(java.lang.String msg,
@Nullable
java.lang.Throwable cause)
msg - the detail messagecause - root cause for the exception, if any