java.net.HttpRetryException
The exception to be thrown when a request cannot be retried.
Summary
Public Constructors
Public Methods
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
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()