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