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:
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
- Author:
- Tom Nichols
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseParseException(HttpResponseDecorator response, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getCause()
-
Methods inherited from class groovyx.net.http.HttpResponseException
getResponse
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResponseParseException
public ResponseParseException(HttpResponseDecorator response, Throwable cause)
-
-