org.jclouds.http
Class HttpResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jclouds.http.HttpResponseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AtmosResponseException, AWSResponseException, AzureStorageResponseException, GoGridResponseException, VCloudResponseException, VCloudResponseException

public class HttpResponseException
extends RuntimeException

Represents an error obtained from an HttpResponse.

Author:
Adrian Cole
See Also:
Serialized Form

Field Summary
protected  HttpCommand command
           
protected  HttpResponse response
           
 
Constructor Summary
HttpResponseException(HttpCommand command, HttpResponse response)
           
HttpResponseException(HttpCommand command, HttpResponse response, String content)
           
HttpResponseException(HttpCommand command, HttpResponse response, String content, Throwable cause)
           
HttpResponseException(HttpCommand command, HttpResponse response, Throwable cause)
           
HttpResponseException(String message, HttpCommand command, HttpResponse response)
           
HttpResponseException(String message, HttpCommand command, HttpResponse response, String content)
           
HttpResponseException(String message, HttpCommand command, HttpResponse response, String content, Throwable cause)
           
HttpResponseException(String message, HttpCommand command, HttpResponse response, Throwable cause)
           
 
Method Summary
 HttpCommand getCommand()
           
 String getContent()
           
 HttpResponse getResponse()
           
 void setContent(String content)
           
 
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
 

Field Detail

command

protected final HttpCommand command

response

protected final HttpResponse response
Constructor Detail

HttpResponseException

public HttpResponseException(String message,
                             HttpCommand command,
                             @Nullable
                             HttpResponse response,
                             Throwable cause)

HttpResponseException

public HttpResponseException(String message,
                             HttpCommand command,
                             @Nullable
                             HttpResponse response,
                             String content,
                             Throwable cause)

HttpResponseException

public HttpResponseException(HttpCommand command,
                             HttpResponse response,
                             Throwable cause)

HttpResponseException

public HttpResponseException(HttpCommand command,
                             HttpResponse response,
                             String content,
                             Throwable cause)

HttpResponseException

public HttpResponseException(String message,
                             HttpCommand command,
                             @Nullable
                             HttpResponse response)

HttpResponseException

public HttpResponseException(String message,
                             HttpCommand command,
                             @Nullable
                             HttpResponse response,
                             String content)

HttpResponseException

public HttpResponseException(HttpCommand command,
                             HttpResponse response)

HttpResponseException

public HttpResponseException(HttpCommand command,
                             HttpResponse response,
                             String content)
Method Detail

getCommand

public HttpCommand getCommand()

getResponse

public HttpResponse getResponse()

setContent

public void setContent(String content)

getContent

public String getContent()


Copyright © 2009-2011 jclouds. All Rights Reserved.