HttpRetryExceptionpublic class HttpRetryException extends IOException If a HTTP request has to be retried, this exception will be thrown if the
request cannot be retried automatically. |
Fields Summary |
---|
private static final long | serialVersionUID | private int | responseCode | private String | location |
Constructors Summary |
---|
public HttpRetryException(String detail, int code)Creates a new {@code HttpRetryException} instance with the specified
response code and the given detail message.
super(detail);
responseCode = code;
| public HttpRetryException(String detail, int code, String location)Creates a new {@code HttpRetryException} instance with the specified
response code, the given detail message and the value of the location
field from the response header.
super(detail);
responseCode = code;
this.location = location;
|
Methods Summary |
---|
public java.lang.String | getLocation()Gets the location value.
return location;
| public java.lang.String | getReason()Gets the detail message.
return getMessage();
| public int | responseCode()Gets the response code.
return responseCode;
|
|