Class HttpMessageConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.http.converter.HttpMessageConversionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpMessageNotReadableException
,HttpMessageNotWritableException
Thrown by
HttpMessageConverter
implementations when a conversion attempt fails.- Since:
- 3.0
- Author:
- Arjen Poutsma, Sebastien Deleuze
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new HttpMessageConversionException.HttpMessageConversionException
(String msg, Throwable cause) Create a new HttpMessageConversionException. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpMessageConversionException
Create a new HttpMessageConversionException.- Parameters:
msg
- the detail message
-
HttpMessageConversionException
Create a new HttpMessageConversionException.- Parameters:
msg
- the detail messagecause
- the root cause (if any)
-