Top Description Constructors
org.springframework.core.codec

public Class DecodingException

extends CodecException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.lang.Nullable

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.

Author
Rossen Stoyanchev
Since
5.0
See Also
Decoder

Constructor Summary

AccessConstructor and Description
public
DecodingException(String
the detail message
msg
)

Create a new DecodingException.

public
DecodingException(String
the detail message
msg
,
Throwable
root cause for the exception, if any
cause
)

Create a new DecodingException.

Constructor Detail

DecodingExceptionback to summary
public DecodingException(String msg)

Create a new DecodingException.

Parameters
msg:String

the detail message

DecodingExceptionback to summary
public DecodingException(String msg, Throwable cause)

Create a new DecodingException.

Parameters
msg:String

the detail message

cause:Throwable

root cause for the exception, if any