Class ZulipRateLimitExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.jamesnetherton.zulip.client.exception.ZulipRateLimitExceededException
All Implemented Interfaces:
Serializable

public class ZulipRateLimitExceededException extends Exception
Thrown when the Zulip server returns an HTTP response code of 429. Indicating that the request rate limit has been reached.
See Also:
  • Constructor Details

    • ZulipRateLimitExceededException

      public ZulipRateLimitExceededException(long rateLimitReset)
      Parameters:
      rateLimitReset - The time represented as a Unix time, at which the Zulip rate limit will be reset
  • Method Details

    • getReteLimitReset

      public long getReteLimitReset()
      Gets the time at which the Zulip rate limit will be reset. The time is in the format of Unix epoch.
      Returns:
      The rate limit reset time