HttpRetryExceptionpublic class HttpRetryException extends IOException Thrown to indicate that a HTTP request needs to be retried
but cannot be retried automatically, due to streaming mode
being enabled. |
Fields Summary |
---|
private int | responseCode | private String | location |
Constructors Summary |
---|
public HttpRetryException(String detail, int code)Constructs a new HttpRetryException from the
specified response code and exception detail message
super(detail);
responseCode = code;
| public HttpRetryException(String detail, int code, String location)Constructs a new HttpRetryException with detail message
responseCode and the contents of the Location response header field.
super (detail);
responseCode = code;
this.location = location;
|
Methods Summary |
---|
public java.lang.String | getLocation()Returns the value of the Location header field if the
error resulted from redirection.
return location;
| public java.lang.String | getReason()Returns a string explaining why the http request could
not be retried.
return super.getMessage();
| public int | responseCode()Returns the http response code
return responseCode;
|
|