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, MediaType, HttpOutputMessage) method fails.- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new HttpMessageNotWritableException.HttpMessageNotWritableException(String msg, @Nullable Throwable cause) Create a new HttpMessageNotWritableException.
- 
Method SummaryMethods inherited from class NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
HttpMessageNotWritableExceptionCreate a new HttpMessageNotWritableException.- Parameters:
- msg- the detail message
 
- 
HttpMessageNotWritableException
 
-