Package com.dropbox.core.v2.auth
Class RateLimitError
java.lang.Object
com.dropbox.core.v2.auth.RateLimitError
Error occurred because the app is being rate limited.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRateLimitError(RateLimitReason reason) Error occurred because the app is being rate limited.RateLimitError(RateLimitReason reason, long retryAfter) Error occurred because the app is being rate limited. -
Method Summary
-
Field Details
-
reason
-
retryAfter
protected final long retryAfter
-
-
Constructor Details
-
RateLimitError
Error occurred because the app is being rate limited.- Parameters:
reason- The reason why the app is being rate limited. Must not benull.retryAfter- The number of seconds that the app should wait before making another request.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
RateLimitError
Error occurred because the app is being rate limited.The default values for unset fields will be used.
- Parameters:
reason- The reason why the app is being rate limited. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getReason
The reason why the app is being rate limited.- Returns:
- value for this field, never
null.
-
getRetryAfter
public long getRetryAfter()The number of seconds that the app should wait before making another request.- Returns:
- value for this field, or
nullif not present. Defaults to 1L.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-