Class TooManyRequestsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
se.michaelthelin.spotify.exceptions.SpotifyWebApiException
se.michaelthelin.spotify.exceptions.detailed.TooManyRequestsException
- All Implemented Interfaces:
Serializable
Rate limiting has been applied.
- See Also:
-
Constructor Summary
ConstructorDescriptionTooManyRequestsException
(String message) TooManyRequestsException
(String message, int retryAfter) TooManyRequestsException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyRequestsException
public TooManyRequestsException() -
TooManyRequestsException
-
TooManyRequestsException
-
TooManyRequestsException
-
-
Method Details
-
getRetryAfter
public int getRetryAfter() -
setRetryAfter
public void setRetryAfter(int retryAfter)
-