org.fishwife.jrugged.httpclient
Class UnsuccessfulResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.fishwife.jrugged.httpclient.UnsuccessfulResponseException
All Implemented Interfaces:
Serializable

public class UnsuccessfulResponseException
extends RuntimeException

Used to wrap 4XX or 5XX responses from an HTTP server in exceptions so that ServiceWrapper instances can experience them as failures.

See Also:
Serialized Form

Constructor Summary
UnsuccessfulResponseException(org.apache.http.HttpResponse resp)
           
 
Method Summary
 org.apache.http.HttpResponse getResponse()
           
 
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

UnsuccessfulResponseException

public UnsuccessfulResponseException(org.apache.http.HttpResponse resp)
Method Detail

getResponse

public org.apache.http.HttpResponse getResponse()


Copyright © 2013. All Rights Reserved.