groovyx.net.http
Class HttpResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.http.client.ClientProtocolException
                  extended by org.apache.http.client.HttpResponseException
                      extended by 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

Constructor Summary
HttpResponseException(HttpResponseDecorator resp)
           
 
Method Summary
 HttpResponseDecorator getResponse()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpResponseException

public HttpResponseException(HttpResponseDecorator resp)
Method Detail

getResponse

public HttpResponseDecorator getResponse()


Copyright © 2008-2012. All Rights Reserved.