public class HttpRetryException extends IOException
| Constructor and Description |
|---|
HttpRetryException(String
Constructs a new
HttpRetryException from the specified response code and exception detail message
|
HttpRetryException(String
Constructs a new
HttpRetryException with detail message responseCode and the contents of the Location response header field.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocation()
Returns the value of the Location header field if the error resulted from redirection.
|
String |
getReason()
Returns a string explaining why the http request could not be retried.
|
int |
responseCode()
Returns the http response code
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpRetryException(Stringdetail, int code)
HttpRetryException from the specified response code and exception detail message
detail - the detail message.
code - the HTTP response code from server.
public HttpRetryException(Stringdetail, int code, String location)
HttpRetryException with detail message responseCode and the contents of the Location response header field.
detail - the detail message.
code - the HTTP response code from server.
location - the URL to be redirected to
public int responseCode()
public StringgetReason()
public StringgetLocation()