Class HttpMessageNotReadableException

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.HttpMessageNotReadableException
All Implemented Interfaces:
Serializable

public class HttpMessageNotReadableException extends HttpMessageConversionException
Since:
3.0
Author:
Arjen Poutsma, Juergen Hoeller
See Also:
  • Constructor Details

    • HttpMessageNotReadableException

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

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

      public HttpMessageNotReadableException(String msg, HttpInputMessage httpInputMessage)
      Create a new HttpMessageNotReadableException.
      Parameters:
      msg - the detail message
      httpInputMessage - the original HTTP message
      Since:
      5.1
    • HttpMessageNotReadableException

      public HttpMessageNotReadableException(String msg, @Nullable Throwable cause, HttpInputMessage httpInputMessage)
      Create a new HttpMessageNotReadableException.
      Parameters:
      msg - the detail message
      cause - the root cause (if any)
      httpInputMessage - the original HTTP message
      Since:
      5.1
  • Method Details

    • getHttpInputMessage

      public HttpInputMessage getHttpInputMessage()
      Return the original HTTP message.
      Since:
      5.1