public class RetryException extends DbxException
getBackoffMillis()
).Constructor and Description |
---|
RetryException(String requestId,
String message)
Creates an instance of this exception with no retry backoff.
|
RetryException(String requestId,
String message,
long backoff,
TimeUnit unit)
Creates an instance of this exception with the given retry backoff.
|
Modifier and Type | Method and Description |
---|---|
long |
getBackoffMillis()
Returns the number of milliseconds the client should backoff before retrying the request.
|
getRequestId
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RetryException(String requestId, String message)
requestId
- ID assigned to request by Dropbox serversmessage
- Error messagepublic RetryException(String requestId, String message, long backoff, TimeUnit unit)
requestId
- ID assigned to request by Dropbox serversmessage
- Error messagebackoff
- amount of time to backoff before retrying the requestunit
- unit of time for backoff