Package org.javacord.api.exception
Class RatelimitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.javacord.api.exception.DiscordException
-
- org.javacord.api.exception.RatelimitException
-
- All Implemented Interfaces:
Serializable
public class RatelimitException extends DiscordException
When we encounter a rate limit and ran out of retires.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RatelimitException(Exception origin, String message, RestRequestInformation request)Creates a new instance of this class.
-
Method Summary
-
Methods inherited from class org.javacord.api.exception.DiscordException
getRequest, getResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RatelimitException
public RatelimitException(Exception origin, String message, RestRequestInformation request)
Creates a new instance of this class.- Parameters:
origin- The origin of the exception.message- The message of the exception.request- The information about the request.
-
-