Class ThrottledException

All Implemented Interfaces:
Serializable

public class ThrottledException extends RequestException
Defines the exception thrown from Connection when a request is throttled.
See Also:
  • Constructor Details

    • ThrottledException

      public ThrottledException(String msg, Long retryAfterSeconds)
      Creates a new ThrottledException.
      Parameters:
      msg - the exception message
      retryAfterSeconds - the amount of time in seconds that the request can be retried
  • Method Details

    • getRetryAfterSeconds

      @Nullable public Long getRetryAfterSeconds()
      The time in seconds that the request can be retried. Note: This can be null and is optionally provided by the response.