Class RateLimitException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RateLimitException
    extends ServiceForbiddenException
    Exception representation for denying service based on rate limits.
    Author:
    Alex Kalderimis
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RateLimitException​(java.lang.String remoteAddr, int limitPerHour)
      Constructor
    • Method Summary

      • 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

      • RateLimitException

        public RateLimitException​(java.lang.String remoteAddr,
                                  int limitPerHour)
        Constructor
        Parameters:
        remoteAddr - The IP-Address we are associating this rate limit with.
        limitPerHour - The maximum number of requests that can be made in any 1 hour period.