Package 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
,B2ResponseException
,GoGridResponseException
,UltraDNSWSResponseException
public class HttpResponseException extends RuntimeException
Represents an error obtained from an HttpResponse.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpCommand
command
protected HttpResponse
response
-
Constructor Summary
Constructors Constructor Description 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)
HttpResponseException(HttpCommand command, HttpResponse response)
HttpResponseException(HttpCommand command, HttpResponse response, boolean logSensitiveInformation)
HttpResponseException(HttpCommand command, HttpResponse response, String content)
HttpResponseException(HttpCommand command, HttpResponse response, String content, Throwable cause)
HttpResponseException(HttpCommand command, HttpResponse response, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpCommand
getCommand()
String
getContent()
HttpResponse
getResponse()
void
setContent(String content)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
command
protected final transient HttpCommand command
-
response
protected final transient 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, boolean logSensitiveInformation)
-
HttpResponseException
public HttpResponseException(HttpCommand command, HttpResponse response, String content)
-
-
Method Detail
-
getCommand
@Nullable public HttpCommand getCommand()
-
getResponse
@Nullable public HttpResponse getResponse()
-
setContent
public void setContent(String content)
-
getContent
public String getContent()
-
-