public class HttpRetryException extends IOException
Constructor and Description |
---|
HttpRetryException(String detail,
int code)
Creates a new
HttpRetryException instance with the specified
response code and the given detail message. |
HttpRetryException(String detail,
int code,
String location)
Creates a new
HttpRetryException instance with the specified
response code, the given detail message and the value of the location
field from the response header. |
Modifier and Type | Method and Description |
---|---|
String |
getLocation()
Gets the location value.
|
String |
getReason()
Gets the detail message.
|
int |
responseCode()
Gets the response code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpRetryException(String detail, int code)
HttpRetryException
instance with the specified
response code and the given detail message.detail
- the detail message for this exception.code
- the HTTP response code from target host.public HttpRetryException(String detail, int code, String location)
HttpRetryException
instance with the specified
response code, the given detail message and the value of the location
field from the response header.detail
- the detail message for this exception.code
- the HTTP response code from target host.location
- the destination URL of the redirection.public String getLocation()
public String getReason()
public int responseCode()