java.net
Class HttpRetryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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 |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HttpRetryException
public HttpRetryException(String detail,
int code)
- new a HttpRetryException by given detail message and responseCode
- Parameters:
detail - detail for this exceptioncode - 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 exceptioncode - http response code to returnlocation - the error resulted from redirection, the Location header can
be recorded
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
Please submit a feedback, bug or feature