public class HttpMessageNotReadableException extends HttpMessageConversionException
HttpMessageConverter
implementations when the
HttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
method fails.Constructor and Description |
---|
HttpMessageNotReadableException(java.lang.String msg)
Deprecated.
as of 5.1, in favor of
HttpMessageNotReadableException(String, HttpInputMessage) |
HttpMessageNotReadableException(java.lang.String msg,
HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.
|
HttpMessageNotReadableException(java.lang.String msg,
java.lang.Throwable cause)
Deprecated.
as of 5.1, in favor of
HttpMessageNotReadableException(String, Throwable, HttpInputMessage) |
HttpMessageNotReadableException(java.lang.String msg,
java.lang.Throwable cause,
HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.
|
Modifier and Type | Method and Description |
---|---|
HttpInputMessage |
getHttpInputMessage()
Return the original HTTP message.
|
contains, getMessage, getMostSpecificCause, getRootCause
@Deprecated public HttpMessageNotReadableException(java.lang.String msg)
HttpMessageNotReadableException(String, HttpInputMessage)
msg
- the detail message@Deprecated public HttpMessageNotReadableException(java.lang.String msg, @Nullable java.lang.Throwable cause)
HttpMessageNotReadableException(String, Throwable, HttpInputMessage)
msg
- the detail messagecause
- the root cause (if any)public HttpMessageNotReadableException(java.lang.String msg, HttpInputMessage httpInputMessage)
msg
- the detail messagehttpInputMessage
- the original HTTP messagepublic HttpMessageNotReadableException(java.lang.String msg, @Nullable java.lang.Throwable cause, HttpInputMessage httpInputMessage)
msg
- the detail messagecause
- the root cause (if any)httpInputMessage
- the original HTTP messagepublic HttpInputMessage getHttpInputMessage()