org.springframework.http.converter

Class HttpMessageNotReadableException

    • Constructor Detail

      • HttpMessageNotReadableException

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

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

        public HttpMessageNotReadableException(java.lang.String msg,
                                               @Nullable
                                               java.lang.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 Detail

      • getHttpInputMessage

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