Class 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
- All Implemented Interfaces:
Serializable
Thrown by
HttpMessageConverter
implementations when the
HttpMessageConverter.write(T, org.springframework.http.MediaType, org.springframework.http.HttpOutputMessage)
method fails.- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new HttpMessageNotWritableException.HttpMessageNotWritableException
(String msg, Throwable cause) Create a new HttpMessageNotWritableException. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpMessageNotWritableException
Create a new HttpMessageNotWritableException.- Parameters:
msg
- the detail message
-
HttpMessageNotWritableException
Create a new HttpMessageNotWritableException.- Parameters:
msg
- the detail messagecause
- the root cause (if any)
-