Package dev.failsafe
Class RateLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.failsafe.FailsafeException
-
- dev.failsafe.RateLimitExceededException
-
- All Implemented Interfaces:
java.io.Serializable
public class RateLimitExceededException extends FailsafeException
Thrown when an execution exceeds or would exceed aRateLimiter
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private RateLimiter<?>
rateLimiter
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description RateLimitExceededException(RateLimiter<?> rateLimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RateLimiter<?>
getRateLimiter()
Returns theRateLimiter
that caused the exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
rateLimiter
private final RateLimiter<?> rateLimiter
-
-
Constructor Detail
-
RateLimitExceededException
public RateLimitExceededException(RateLimiter<?> rateLimiter)
-
-
Method Detail
-
getRateLimiter
public RateLimiter<?> getRateLimiter()
Returns theRateLimiter
that caused the exception.
-
-