Module io.github.bucket4j.core
Class UsageOfUnsupportedApiError
java.lang.Object
io.github.bucket4j.distributed.remote.UsageOfUnsupportedApiError
- All Implemented Interfaces:
CommandError,ComparableByContent<UsageOfUnsupportedApiError>
public class UsageOfUnsupportedApiError
extends Object
implements CommandError, ComparableByContent<UsageOfUnsupportedApiError>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUsageOfUnsupportedApiError(int requestedFormatNumber, int maxSupportedFormatNumber) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintint
-
Field Details
-
SERIALIZATION_HANDLE
-
-
Constructor Details
-
UsageOfUnsupportedApiError
public UsageOfUnsupportedApiError(int requestedFormatNumber, int maxSupportedFormatNumber)
-
-
Method Details
-
getRequestedFormatNumber
public int getRequestedFormatNumber() -
getMaxSupportedFormatNumber
public int getMaxSupportedFormatNumber() -
asException
- Specified by:
asExceptionin interfaceCommandError
-
equalsByContent
- Specified by:
equalsByContentin interfaceComparableByContent<UsageOfUnsupportedApiError>
-