public class HttpMessageNotWritableException extends HttpMessageConversionException
HttpMessageConverter
implementations when the
HttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
method fails.Constructor and Description |
---|
HttpMessageNotWritableException(java.lang.String msg)
Create a new HttpMessageNotWritableException.
|
HttpMessageNotWritableException(java.lang.String msg,
java.lang.Throwable cause)
Create a new HttpMessageNotWritableException.
|
contains, getMessage, getMostSpecificCause, getRootCause
public HttpMessageNotWritableException(java.lang.String msg)
msg
- the detail messagepublic HttpMessageNotWritableException(java.lang.String msg, @Nullable java.lang.Throwable cause)
msg
- the detail messagecause
- the root cause (if any)