加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090228220112/http://developer.android.com:80/reference/java/net/HttpRetryException.html
public class

HttpRetryException

extends IOException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.net.HttpRetryException

Class Overview

The exception to be thrown when a request cannot be retried.

Summary

Public Constructors
HttpRetryException(String detail, int code)
new a HttpRetryException by given detail message and responseCode
HttpRetryException(String detail, int code, String location)
new a HttpRetryException by given detail message, responseCode and the Location response header
Public Methods
String getLocation()
String getReason()
int responseCode()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public HttpRetryException (String detail, int code)

new a HttpRetryException by given detail message and responseCode

Parameters
detail detail for this exception
code http response code to return

public HttpRetryException (String detail, int code, String location)

new a HttpRetryException by given detail message, responseCode and the Location response header

Parameters
detail detail for this exception
code http response code to return
location the error resulted from redirection, the Location header can be recorded

Public Methods

public String getLocation ()

Returns
  • the Location header recorded

public String getReason ()

Returns
  • the detail reason for this exception

public int responseCode ()

Returns
  • a http response code