public class ConsumerError extends ClientError
| Constructor and Description |
|---|
ConsumerError(java.lang.String message) |
ConsumerError(java.lang.String message,
int statusCode,
org.apache.http.HttpRequest httpRequest) |
ConsumerError(java.lang.String message,
java.lang.Throwable cause) |
ConsumerError(java.lang.String message,
java.lang.Throwable cause,
int statusCode,
org.apache.http.HttpRequest httpRequest) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpRequest |
getHttpRequest()
Gets the HttpRequest in which the ConsumerError occurred.
|
int |
getStatusCode()
Get the HTTP Status Code that caused the ConsumerError.
|
getApi, setApipublic ConsumerError(java.lang.String message,
java.lang.Throwable cause,
int statusCode,
org.apache.http.HttpRequest httpRequest)
message - error descriptioncause - if ConsumerError is thrown as consequence of another exception. If ConsumerError is not caused by
another exception, then it set to null.statusCode - HTTP Status Code that caused the ConsumerError. If ConsumerError is caused by an HTTP Client
or HTTP Server error, then it is set to the HTTP status code. If ConsumerError is not due to
an HTTP error, then it is set to zero.httpRequest - HttpRequest in which the ConsumerError occurredpublic ConsumerError(java.lang.String message,
int statusCode,
org.apache.http.HttpRequest httpRequest)
message - error descriptionstatusCode - HTTP Status Code that caused the ConsumerError. If ConsumerError is caused by an HTTP Client
or HTTP Server error, then it is set to the HTTP status code. If ConsumerError is not due to
an HTTP error, then it is set to zero.httpRequest - HttpRequest in which the ConsumerError occurredpublic ConsumerError(java.lang.String message,
java.lang.Throwable cause)
message - error descriptioncause - if ConsumerError is thrown as consequence of another exception. If ConsumerError is not caused by
another exception, then it set to null.public ConsumerError(java.lang.String message)
message - error descriptionpublic int getStatusCode()
getStatusCode in class ClientErrorpublic org.apache.http.HttpRequest getHttpRequest()