blob: 2bb26240aa6709e64a1e1e61e90e6b92cbb1b1e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
}
|