com.jayway.restassured.internal.http
Class ResponseParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.http.client.ClientProtocolException
                  extended by org.apache.http.client.HttpResponseException
                      extended by com.jayway.restassured.internal.http.HttpResponseException
                          extended by com.jayway.restassured.internal.http.ResponseParseException
All Implemented Interfaces:
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
Author:
Tom Nichols
See Also:
Serialized Form

Constructor Summary
ResponseParseException(HttpResponseDecorator response, Throwable cause)
           
 
Method Summary
 Throwable getCause()
           
 
Methods inherited from class com.jayway.restassured.internal.http.HttpResponseException
getResponse
 
Methods inherited from class org.apache.http.client.HttpResponseException
getStatusCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, 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

ResponseParseException

public ResponseParseException(HttpResponseDecorator response,
                              Throwable cause)
Method Detail

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable


Copyright © 2010-2012. All Rights Reserved.