public class ClientException extends Exception
| Constructor and Description |
|---|
ClientException(String message) |
ClientException(String message,
int httpStatusCode) |
ClientException(String message,
int httpStatusCode,
Throwable throwable) |
ClientException(String message,
Throwable throwable) |
ClientException(String message,
Throwable throwable,
org.apache.http.client.methods.HttpUriRequest request,
SlingHttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpStatusCode() |
String |
getMessage() |
org.apache.http.client.methods.HttpUriRequest |
getRequest() |
SlingHttpResponse |
getResponse() |
void |
setRequest(org.apache.http.client.methods.HttpUriRequest request)
Set the request associated with this exception
|
void |
setResponse(SlingHttpResponse response)
Set the response associated with this exception or {{null}}
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ClientException(String message)
public ClientException(String message, int httpStatusCode)
public ClientException(String message, Throwable throwable, org.apache.http.client.methods.HttpUriRequest request, SlingHttpResponse response)
public org.apache.http.client.methods.HttpUriRequest getRequest()
public void setRequest(org.apache.http.client.methods.HttpUriRequest request)
request - public SlingHttpResponse getResponse()
public void setResponse(SlingHttpResponse response)
response - public int getHttpStatusCode()
public String getMessage()
getMessage in class ThrowableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.