Class RatelimitedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RatelimitedException
    extends java.lang.Throwable
    Used when the Wrapper gets ratelimited by the BotBlockAPI.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RatelimitedException​(java.lang.String response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Gives the exception message.
      • 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

      • RatelimitedException

        public RatelimitedException​(java.lang.String response)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Gives the exception message.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        The Exception message with route, IP, ID and when you can send again.