Class GitHubAbuseLimitHandler

    • Constructor Detail

      • GitHubAbuseLimitHandler

        public GitHubAbuseLimitHandler()
    • Method Detail

      • onError

        public abstract void onError​(@Nonnull
                                     GitHubConnectorResponse connectorResponse)
                              throws IOException
        Called when the library encounters HTTP error indicating that the API abuse limit is reached.

        Any exception thrown from this method will cause the request to fail, and the caller of github-api will receive an exception. If this method returns normally, another request will be attempted. For that to make sense, the implementation needs to wait for some time.

        Parameters:
        connectorResponse - Response information for this request.
        Throws:
        IOException - on failure
        See Also:
        API documentation from GitHub, Dealing with abuse rate limits