Package groovyx.net.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
-
- groovyx.net.http.HttpResponseException
-
- groovyx.net.http.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 callingex.response.contentType
.- Since:
- 0.5.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
cause
private static long
serialVersionUID
-
Fields inherited from class groovyx.net.http.HttpResponseException
response
-
-
Constructor Summary
Constructors Constructor Description ResponseParseException(HttpResponseDecorator response, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
-
Methods inherited from class groovyx.net.http.HttpResponseException
getResponse
-
Methods inherited from class org.apache.http.client.HttpResponseException
getReasonPhrase, getStatusCode
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cause
private java.lang.Throwable cause
-
-
Constructor Detail
-
ResponseParseException
public ResponseParseException(HttpResponseDecorator response, java.lang.Throwable cause)
-
-