Top Description Fields Constructors Methods
org.springframework.http.converter

public Class HttpMessageNotReadableException

extends HttpMessageConversionException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.http.HttpInputMessage, org.springframework.lang.Nullable, org.springframework.util.Assert

Thrown by HttpMessageConverter implementations when the HttpMessageConverter#read method fails.
Authors
Arjen Poutsma, Juergen Hoeller
Since
3.0

Field Summary

Modifier and TypeField and Description
private final HttpInputMessage

Constructor Summary

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

Create a new HttpMessageNotReadableException.
public
HttpMessageNotReadableException(String
the detail message
msg
,
Throwable
the root cause (if any)
cause
)

Create a new HttpMessageNotReadableException.
public
HttpMessageNotReadableException(String
the detail message
msg
,
HttpInputMessage
the original HTTP message
httpInputMessage
)

Create a new HttpMessageNotReadableException.

public
HttpMessageNotReadableException(String
the detail message
msg
,
Throwable
the root cause (if any)
cause
,
HttpInputMessage
the original HTTP message
httpInputMessage
)

Create a new HttpMessageNotReadableException.

Method Summary

Modifier and TypeMethod and Description
public HttpInputMessage
getHttpInputMessage()

Return the original HTTP message.

Field Detail

httpInputMessageback to summary
private final HttpInputMessage httpInputMessage
Annotations
@Nullable

Constructor Detail

HttpMessageNotReadableExceptionback to summary
public HttpMessageNotReadableException(String msg)

Create a new HttpMessageNotReadableException.

Parameters
msg:String

the detail message

Annotations
@Deprecated
HttpMessageNotReadableExceptionback to summary
public HttpMessageNotReadableException(String msg, Throwable cause)

Create a new HttpMessageNotReadableException.

Parameters
msg:String

the detail message

cause:Throwable

the root cause (if any)

Annotations
@Deprecated
HttpMessageNotReadableExceptionback to summary
public HttpMessageNotReadableException(String msg, HttpInputMessage httpInputMessage)

Create a new HttpMessageNotReadableException.

Parameters
msg:String

the detail message

httpInputMessage:HttpInputMessage

the original HTTP message

Since
5.1
HttpMessageNotReadableExceptionback to summary
public HttpMessageNotReadableException(String msg, Throwable cause, HttpInputMessage httpInputMessage)

Create a new HttpMessageNotReadableException.

Parameters
msg:String

the detail message

cause:Throwable

the root cause (if any)

httpInputMessage:HttpInputMessage

the original HTTP message

Since
5.1

Method Detail

getHttpInputMessageback to summary
public HttpInputMessage getHttpInputMessage()

Return the original HTTP message.

Since
5.1