Package net.dv8tion.jda.api.exceptions
Class RateLimitedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.dv8tion.jda.api.exceptions.RateLimitedException
- All Implemented Interfaces:
Serializable
Indicates that we received a
429: Too Many Requests response- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRateLimitedException(String route, long retryAfter) RateLimitedException(Route.CompiledRoute route, long retryAfter) -
Method Summary
Modifier and TypeMethodDescriptionThe route responsible for the rate limit bucket that is used in the responsible RateLimiterlongThe back-off delay in milliseconds that should be respected before trying to query therouteagainMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RateLimitedException
-
RateLimitedException
-
-
Method Details
-
getRateLimitedRoute
The route responsible for the rate limit bucket that is used in the responsible RateLimiter- Returns:
- The corresponding route
-
getRetryAfter
public long getRetryAfter()The back-off delay in milliseconds that should be respected before trying to query therouteagain- Returns:
- The back-off delay in milliseconds
-