org.springframework.http.converter
Class HttpMessageConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.http.converter.HttpMessageConversionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HttpMessageNotReadableException, HttpMessageNotWritableException

public class HttpMessageConversionException
extends NestedRuntimeException

Thrown by HttpMessageConverter implementations when the conversion fails.

Since:
3.0
Author:
Arjen Poutsma
See Also:
Serialized Form

Constructor Summary
HttpMessageConversionException(java.lang.String msg)
          Create a new HttpMessageConversionException.
HttpMessageConversionException(java.lang.String msg, java.lang.Throwable cause)
          Create a new HttpMessageConversionException.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpMessageConversionException

public HttpMessageConversionException(java.lang.String msg)
Create a new HttpMessageConversionException.

Parameters:
msg - the detail message

HttpMessageConversionException

public HttpMessageConversionException(java.lang.String msg,
                                      java.lang.Throwable cause)
Create a new HttpMessageConversionException.

Parameters:
msg - the detail message
cause - the root cause (if any)