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

public class TooManyRequestsException extends SpotifyWebApiException
Rate limiting has been applied.
See Also:
  • Constructor Details

    • TooManyRequestsException

      public TooManyRequestsException()
    • TooManyRequestsException

      public TooManyRequestsException(String message, int retryAfter)
    • TooManyRequestsException

      public TooManyRequestsException(String message)
    • TooManyRequestsException

      public TooManyRequestsException(String message, Throwable cause)
  • Method Details

    • getRetryAfter

      public int getRetryAfter()
    • setRetryAfter

      public void setRetryAfter(int retryAfter)