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(String msg)Deprecated. 
 as of 5.1, in favor of  HttpMessageNotReadableException(String, HttpInputMessage) | 
| HttpMessageNotReadableException(String msg,
                               HttpInputMessage httpInputMessage)Create a new HttpMessageNotReadableException. | 
| HttpMessageNotReadableException(String msg,
                               Throwable cause)Deprecated. 
 as of 5.1, in favor of  HttpMessageNotReadableException(String, Throwable, HttpInputMessage) | 
| HttpMessageNotReadableException(String msg,
                               Throwable cause,
                               HttpInputMessage httpInputMessage)Create a new HttpMessageNotReadableException. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpInputMessage | getHttpInputMessage()Return the original HTTP message. | 
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString@Deprecated public HttpMessageNotReadableException(String msg)
HttpMessageNotReadableException(String, HttpInputMessage)msg - the detail message@Deprecated public HttpMessageNotReadableException(String msg, @Nullable Throwable cause)
HttpMessageNotReadableException(String, Throwable, HttpInputMessage)msg - the detail messagecause - the root cause (if any)public HttpMessageNotReadableException(String msg, HttpInputMessage httpInputMessage)
msg - the detail messagehttpInputMessage - the original HTTP messagepublic HttpMessageNotReadableException(String msg, @Nullable Throwable cause, HttpInputMessage httpInputMessage)
msg - the detail messagecause - the root cause (if any)httpInputMessage - the original HTTP messagepublic HttpInputMessage getHttpInputMessage()