se.michaelthelin.spotify.exceptions.detailed.TooManyRequestsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-web-api-java Show documentation
Show all versions of spotify-web-api-java Show documentation
A Java client for Spotify's Web API
package se.michaelthelin.spotify.exceptions.detailed;
import se.michaelthelin.spotify.exceptions.SpotifyWebApiException;
/**
* Rate limiting has been applied.
*/
public class TooManyRequestsException extends SpotifyWebApiException {
private int retryAfter;
public TooManyRequestsException() {
super();
}
public TooManyRequestsException(String message, int retryAfter) {
super(message);
this.setRetryAfter(retryAfter);
}
public TooManyRequestsException(String message) {
super(message);
}
public TooManyRequestsException(String message, Throwable cause) {
super(message, cause);
}
public int getRetryAfter() {
return retryAfter;
}
public void setRetryAfter(int retryAfter) {
this.retryAfter = retryAfter;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy