org.jclouds.http
Class HttpResponseException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
java.lang.RuntimeException
              
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
 
 
| 
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)
 
            | 
 
 
| Methods inherited from class java.lang.Throwable | 
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
command
protected final HttpCommand command
response
protected final HttpResponse response
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)
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.