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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBackoffMillis()Returns the number of milliseconds the client should backoff before retrying the request.- 
Methods inherited from class com.dropbox.core.DbxExceptiongetRequestId
 
- 
 
- 
- 
- 
Constructor Detail- 
RetryExceptionpublic 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 servers
- message- Error message
 
 - 
RetryExceptionpublic 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 servers
- message- Error message
- backoff- amount of time to backoff before retrying the request
- unit- unit of time for- backoff
 
 
- 
 
-