FileDocCategorySizeDatePackage
HttpRetryException.javaAPI DocAndroid 1.5 API2875Wed May 06 22:41:04 BST 2009java.net

HttpRetryException

public class HttpRetryException extends IOException
If a HTTP request has to be retried, this exception will be thrown if the request cannot be retried automatically.
since
Android 1.0

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.

param
detail the detail message for this exception.
param
code the HTTP response code from target host.
since
Android 1.0


                                                                    
         
        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.

param
detail the detail message for this exception.
param
code the HTTP response code from target host.
param
location the destination URL of the redirection.
since
Android 1.0

        super(detail);
        responseCode = code;
        this.location = location;
    
Methods Summary
public java.lang.StringgetLocation()
Gets the location value.

return
the stored location from the HTTP header.
since
Android 1.0

        return location;
    
public java.lang.StringgetReason()
Gets the detail message.

return
the detail message.
since
Android 1.0

        return getMessage();
    
public intresponseCode()
Gets the response code.

return
the HTTP response code.
since
Android 1.0

        return responseCode;