Package groovyx.net.http
Class HttpResponseException
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ResponseParseException
public class HttpResponseException
extends org.apache.http.client.HttpResponseException
Wraps an error response in an exception for flow control purposes. That is,
you can still inspect response headers, but in a
catch( HttpResponseException ex ) { }
block.- Since:
- 0.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) HttpResponseDecorator
private static final long
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.http.client.HttpResponseException
getReasonPhrase, getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
response
HttpResponseDecorator response
-
-
Constructor Details
-
HttpResponseException
-
-
Method Details
-
getResponse
-