public class HttpClientException
extends java.lang.RuntimeException
DefaultHttpClient
interactions.Constructor and Description |
---|
HttpClientException(java.lang.String message,
java.lang.Exception cause)
An exception with a message and a root cause.
|
HttpClientException(java.lang.String message,
java.lang.Exception cause,
java.lang.String url,
int statusCode,
java.lang.String body)
An exception with a message, root cause, and HTTP response data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Get the response body.
|
int |
getStatusCode()
Get the HTTP status code.
|
java.lang.String |
getUrl()
Get the URL.
|
public HttpClientException(java.lang.String message, java.lang.Exception cause)
message
- The message describing the exception.cause
- The initial cause of the exception.public HttpClientException(java.lang.String message, java.lang.Exception cause, java.lang.String url, int statusCode, java.lang.String body)
message
- The message describing the exception.cause
- The initial cause of the exception.url
- The URL.statusCode
- The HTTP status code.body
- The response body.