public class RespectedRateLimitException extends RateLimitException
RateLimitHandler
decides to drop a request instead of sending it to the Riot API to prevent violating the rate
limit.BAD_GATEWAY, BAD_REQUEST, DATA_NOT_FOUND, FORBIDDEN, GATEWAY_TIMEOUT, IOEXCEPTION, METHOD_NOT_ALLOWED, MISSING_API_KEY, MISSING_TOURNAMENT_API_KEY, NOT_IMPLEMENTED, NULLPOINTEREXCEPTION, PARSE_FAILURE, RATE_LIMITED, SERVER_ERROR, TIMEOUT_EXCEPTION, UNAUTHORIZED, UNAVAILABLE, UNPROCESSABLE_ENTITY, UNSUPPORTED_MEDIA_TYPE
Constructor and Description |
---|
RespectedRateLimitException(int retryAfter,
java.lang.String rateLimitType)
Constructs a
RespectedRateLimitException with the specified attributes. |
getRateLimitType, getRetryAfter
getErrorCode, getErrorDto, getMessage, getMessage
public RespectedRateLimitException(int retryAfter, java.lang.String rateLimitType)
RespectedRateLimitException
with the specified attributes.retryAfter
- The time in seconds to wait before the api key limits get refreshedrateLimitType
- The type of rate limit that has been exceeded