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
- Author:
- Tom Nichols
- See Also:
- Serialized Form
Methods inherited from class org.apache.http.client.HttpResponseException |
getStatusCode |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HttpResponseException
public HttpResponseException(HttpResponseDecorator resp)
getResponse
public HttpResponseDecorator getResponse()
Copyright © 2008-2012. All Rights Reserved.