Build 1.0_r1(from source)

java.net
Class HttpRetryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.HttpRetryException
All Implemented Interfaces:
Serializable

public class HttpRetryException
extends IOException

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

See Also:
Serialized Form

Constructor Summary
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
 
Method Summary
 String getLocation()
           
 String getReason()
           
 int responseCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpRetryException

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

HttpRetryException

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
Method Detail

getLocation

public String getLocation()
Returns:
the Location header recorded

getReason

public String getReason()
Returns:
the detail reason for this exception

responseCode

public int responseCode()
Returns:
a http response code

Build 1.0_r1(from source)

Please submit a feedback, bug or feature