public class java.net
HttpRetryException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > IOException
Details
Thrown to indicate that a HTTP request needs to be retried but cannot be retried automatically, due to streaming mode being enabled.
version1.2, 11/17/05
since1.5

Constructors
public HttpRetryException(String detail, int code) Details
Constructs a new HttpRetryException from the specified response code and exception detail message
detailthe detail message.
codethe HTTP response code from server.
public HttpRetryException(String detail, int code, String location) Details
Constructs a new HttpRetryException with detail message responseCode and the contents of the Location response header field.
detailthe detail message.
codethe HTTP response code from server.
locationthe URL to be redirected to

Methods
public int responseCode() Details
Returns the http response code
returnThe http response code.

Properties
public String getLocation() Details
Returns the value of the Location header field if the error resulted from redirection.
returnThe location string
public String getReason() Details
Returns a string explaining why the http request could not be retried.
returnThe reason string