Class HttpMessageConversionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpMessageNotReadableException, HttpMessageNotWritableException

public class HttpMessageConversionException extends NestedRuntimeException
Thrown by HttpMessageConverter implementations when a conversion attempt fails.
Since:
3.0
Author:
Arjen Poutsma, Sebastien Deleuze
See Also:
  • Constructor Details

    • HttpMessageConversionException

      public HttpMessageConversionException(String msg)
      Create a new HttpMessageConversionException.
      Parameters:
      msg - the detail message
    • HttpMessageConversionException

      public HttpMessageConversionException(String msg, @Nullable Throwable cause)
      Create a new HttpMessageConversionException.
      Parameters:
      msg - the detail message
      cause - the root cause (if any)