English | Site Directory

Android - An Open Handset Alliance Project

java.net
public class

java.net.HttpRetryException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.io.IOException
java.net.HttpRetryException

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()
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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
Build m5-rc15i - 10 Jun 2008 13:54