Class ResponseParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ResponseParseException
    extends HttpResponseException
    Thrown when a response body is parsed unsuccessfully. This most often occurs when a server returns an error status code and sends a different content-type body from what was expected. You can inspect the response content-type by calling ex.response.contentType.
    Since:
    0.5.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()  
      • Methods inherited from class org.apache.http.client.HttpResponseException

        getReasonPhrase, getStatusCode
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cause

        private java.lang.Throwable cause
    • Constructor Detail

      • ResponseParseException

        public ResponseParseException​(HttpResponseDecorator response,
                                      java.lang.Throwable cause)
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Overrides:
        getCause in class java.lang.Throwable