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