
com.github.gpluscb.ggjava.api.exception.RateLimitException Maven / Gradle / Ivy
package com.github.gpluscb.ggjava.api.exception;
import com.github.gpluscb.ggjava.internal.utils.Checks;
import com.google.gson.JsonObject;
import javax.annotation.Nonnull;
/**
* Represents that a rate limit was hit.
*/
public class RateLimitException extends RequestFailureException {
/**
* @throws IllegalArgumentException if jsonResponse is null
*/
public RateLimitException(@Nonnull JsonObject jsonResponse) {
super(jsonResponse, jsonResponse.toString());
Checks.nonNull(jsonResponse, "jsonResponse");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy