Class TooManyRequestsHTTPException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TooManyRequestsHTTPException
    extends HTTPException
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      int getRetryAfter()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • getRetryAfter

        public int getRetryAfter()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable