Class BucketTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.voidframework.bucket4j.exception.BucketTokenException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BucketTokenException.BucketDoesNotExist,BucketTokenException.NoEnoughTokensAvailable,BucketTokenException.UnknownRefillStrategy
All exceptions thrown by "bucket-token" (Bucket4J) module are subclasses of
BucketTokenException.- Since:
- 1.9.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException indicates that requested Bucket does not exist.static classException indicates that Bucket does not have enough tokens to enter protected method.static classException indicates that specified refill strategy is unknown. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBucketTokenException(String message) Build a new instance.protectedBucketTokenException(String message, Throwable cause) Build a new instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BucketTokenException
Build a new instance.- Parameters:
message- The detail message- Since:
- 1.9.0
-
BucketTokenException
Build a new instance.- Parameters:
message- The detail messagecause- The cause- Since:
- 1.9.0
-