com.jayway.restassured.internal.http
Class ResponseParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.http.client.ClientProtocolException
org.apache.http.client.HttpResponseException
com.jayway.restassured.internal.http.HttpResponseException
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
| Methods inherited from class org.apache.http.client.HttpResponseException |
getStatusCode |
ResponseParseException
public ResponseParseException(HttpResponseDecorator response,
Throwable cause)
getCause
public Throwable getCause()
- Overrides:
getCause in class Throwable
Copyright © 2010-2012. All Rights Reserved.