Class TooManyRequestsHTTPException

All Implemented Interfaces:
Serializable

public class TooManyRequestsHTTPException extends HTTPException
See Also:
  • Constructor Details

    • TooManyRequestsHTTPException

      public TooManyRequestsHTTPException(int statusCode)
      Constructor for the TooManyRequestsHTTPException
      Parameters:
      statusCode - int for the HTTP status code
    • TooManyRequestsHTTPException

      public TooManyRequestsHTTPException(int statusCode, int retryAfter)
      Constructor for the TooManyRequestsHTTPException
      Parameters:
      statusCode - int for the HTTP status code
      retryAfter - int for the delay time after which subsequent request should be made
  • Method Details

    • getRetryAfter

      public int getRetryAfter()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable