Package com.dropbox.core
Class RetryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.dropbox.core.DbxException
-
- com.dropbox.core.RetryException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RateLimitException
public class RetryException extends DbxException
A transient exception has occurred and the request should be retried. Clients should only retry requests after waiting the requested backoff duration (seegetBackoffMillis()
).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryException(java.lang.String requestId, java.lang.String message)
Creates an instance of this exception with no retry backoff.RetryException(java.lang.String requestId, java.lang.String message, long backoff, java.util.concurrent.TimeUnit unit)
Creates an instance of this exception with the given retry backoff.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getBackoffMillis()
Returns the number of milliseconds the client should backoff before retrying the request.-
Methods inherited from class com.dropbox.core.DbxException
getRequestId
-
-
-
-
Constructor Detail
-
RetryException
public RetryException(java.lang.String requestId, java.lang.String message)
Creates an instance of this exception with no retry backoff.- Parameters:
requestId
- ID assigned to request by Dropbox serversmessage
- Error message
-
RetryException
public RetryException(java.lang.String requestId, java.lang.String message, long backoff, java.util.concurrent.TimeUnit unit)
Creates an instance of this exception with the given retry backoff.- Parameters:
requestId
- ID assigned to request by Dropbox serversmessage
- Error messagebackoff
- amount of time to backoff before retrying the requestunit
- unit of time forbackoff
-
-