|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jclouds.rest.RetryAfterException
public class RetryAfterException
This exception is raised when an http endpoint returns with a response
telling the caller to make the same request after a certain period of time.
Typically, this is returned with a 503 status code, as specified in
the HttpHeaders.RETRY_AFTER header.
| Constructor Summary | |
|---|---|
RetryAfterException(String message,
int seconds)
Construct an exception instance to happen at a time in the future |
|
RetryAfterException(String message,
Throwable cause,
int seconds)
Construct an exception instance to happen at a time in the future |
|
RetryAfterException(Throwable cause,
int seconds)
Construct an exception instance to happen at a time in the future |
|
| Method Summary | |
|---|---|
int |
getSeconds()
Get the value of the retry time |
| 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 |
|---|
public RetryAfterException(String message,
int seconds)
message - messageseconds - retry after delta. Negative values are converted to zero
public RetryAfterException(Throwable cause,
int seconds)
cause - causeseconds - retry after delta. Negative values are converted to zero
public RetryAfterException(String message,
Throwable cause,
int seconds)
message - messagecause - causeseconds - retry after delta. Negative values are converted to zero| Method Detail |
|---|
public int getSeconds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||