public class RateLimitedException
extends java.lang.Exception
429: Too Many Requests
responseConstructor and Description |
---|
RateLimitedException(Route.CompiledRoute route,
long retryAfter) |
RateLimitedException(java.lang.String route,
long retryAfter) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRateLimitedRoute()
The route responsible for the rate limit bucket that is used in
the responsible
RateLimiter |
long |
getRetryAfter()
The back-off delay in milliseconds that should be respected
before trying to query the
route again |
public RateLimitedException(Route.CompiledRoute route, long retryAfter)
public RateLimitedException(java.lang.String route, long retryAfter)
public java.lang.String getRateLimitedRoute()
RateLimiter
public long getRetryAfter()
route
again