public class HttpRetryException
extends java.io.IOException
Constructor and Description |
---|
HttpRetryException(java.lang.String detail,
int code)
Constructs a new
HttpRetryException from the
specified response code and exception detail message |
HttpRetryException(java.lang.String detail,
int code,
java.lang.String location)
Constructs a new
HttpRetryException with detail message
responseCode and the contents of the Location response header field. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocation()
Returns the value of the Location header field if the
error resulted from redirection.
|
java.lang.String |
getReason()
Returns a string explaining why the http request could
not be retried.
|
int |
responseCode()
Returns the http response code
|
public HttpRetryException(java.lang.String detail, int code)
HttpRetryException
from the
specified response code and exception detail messagedetail
- the detail message.code
- the HTTP response code from server.public HttpRetryException(java.lang.String detail, int code, java.lang.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 topublic int responseCode()
public java.lang.String getReason()
public java.lang.String getLocation()