类 HttpMessageNotReadableException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.http.converter.HttpMessageConversionException
- org.springframework.http.converter.HttpMessageNotReadableException
- 所有已实现的接口:
Serializable
public class HttpMessageNotReadableException extends HttpMessageConversionException
Thrown byHttpMessageConverter
implementations when theHttpMessageConverter.read(java.lang.Class<? extends T>, org.springframework.http.HttpInputMessage)
method fails.- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 HttpMessageNotReadableException(String msg)
已过时。as of 5.1, in favor ofHttpMessageNotReadableException(String, HttpInputMessage)
HttpMessageNotReadableException(String msg, Throwable cause)
已过时。as of 5.1, in favor ofHttpMessageNotReadableException(String, Throwable, HttpInputMessage)
HttpMessageNotReadableException(String msg, Throwable cause, HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.HttpMessageNotReadableException(String msg, HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HttpInputMessage
getHttpInputMessage()
Return the original HTTP message.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
HttpMessageNotReadableException
@Deprecated public HttpMessageNotReadableException(String msg)
已过时。as of 5.1, in favor ofHttpMessageNotReadableException(String, HttpInputMessage)
Create a new HttpMessageNotReadableException.- 参数:
msg
- the detail message
HttpMessageNotReadableException
@Deprecated public HttpMessageNotReadableException(String msg, @Nullable Throwable cause)
已过时。as of 5.1, in favor ofHttpMessageNotReadableException(String, Throwable, HttpInputMessage)
Create a new HttpMessageNotReadableException.- 参数:
msg
- the detail messagecause
- the root cause (if any)
HttpMessageNotReadableException
public HttpMessageNotReadableException(String msg, HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.- 参数:
msg
- the detail messagehttpInputMessage
- the original HTTP message- 从以下版本开始:
- 5.1
HttpMessageNotReadableException
public HttpMessageNotReadableException(String msg, @Nullable Throwable cause, HttpInputMessage httpInputMessage)
Create a new HttpMessageNotReadableException.- 参数:
msg
- the detail messagecause
- the root cause (if any)httpInputMessage
- the original HTTP message- 从以下版本开始:
- 5.1
方法详细资料
getHttpInputMessage
public HttpInputMessage getHttpInputMessage()
Return the original HTTP message.- 从以下版本开始:
- 5.1