diff options
Diffstat (limited to 'src/io/RateLimitException.java')
-rw-r--r-- | src/io/RateLimitException.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/io/RateLimitException.java b/src/io/RateLimitException.java new file mode 100644 index 0000000..2bb2624 --- /dev/null +++ b/src/io/RateLimitException.java @@ -0,0 +1,18 @@ +package io; + +/** + * The exception that will be thrown when a ratelimit has been hit. + * + * @author Maurice Laveaux + */ +public class RateLimitException extends Exception { + private final long rateLimitReset; + + public RateLimitException(long resetTime) { + rateLimitReset = resetTime; + } + + public long getResetTime() { + return rateLimitReset; + } +} |