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 acatch( HttpResponseException ex ) { }
block.- Since:
- 0.5
- Author:
- Tom Nichols
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpResponseException(HttpResponseDecorator resp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseDecorator
getResponse()
-
Methods inherited from class org.apache.http.client.HttpResponseException
getReasonPhrase, getStatusCode
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HttpResponseException
public HttpResponseException(HttpResponseDecorator resp)
-
-
Method Detail
-
getResponse
public HttpResponseDecorator getResponse()
-
-