类 HttpMessageNotWritableException
- 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.HttpMessageNotWritableException
- 所有已实现的接口:
Serializable
public class HttpMessageNotWritableException extends HttpMessageConversionException
Thrown byHttpMessageConverter
implementations when theHttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
method fails.- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 HttpMessageNotWritableException(String msg)
Create a new HttpMessageNotWritableException.HttpMessageNotWritableException(String msg, Throwable cause)
Create a new HttpMessageNotWritableException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
HttpMessageNotWritableException
public HttpMessageNotWritableException(String msg)
Create a new HttpMessageNotWritableException.- 参数:
msg
- the detail message
HttpMessageNotWritableException
public HttpMessageNotWritableException(String msg, Throwable cause)
Create a new HttpMessageNotWritableException.- 参数:
msg
- the detail messagecause
- the root cause (if any)