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 Modifier and Type Field Description static SerializationHandle<UsageOfUnsupportedApiError>SERIALIZATION_HANDLE
-
Constructor Summary
Constructors Constructor Description UsageOfUnsupportedApiError(int requestedFormatNumber, int maxSupportedFormatNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeExceptionasException()booleanequalsByContent(UsageOfUnsupportedApiError other)intgetMaxSupportedFormatNumber()intgetRequestedFormatNumber()
-
-
-
Field Detail
-
SERIALIZATION_HANDLE
public static SerializationHandle<UsageOfUnsupportedApiError> SERIALIZATION_HANDLE
-
-
Method Detail
-
getRequestedFormatNumber
public int getRequestedFormatNumber()
-
getMaxSupportedFormatNumber
public int getMaxSupportedFormatNumber()
-
asException
public RuntimeException asException()
- Specified by:
asExceptionin interfaceCommandError
-
equalsByContent
public boolean equalsByContent(UsageOfUnsupportedApiError other)
- Specified by:
equalsByContentin interfaceComparableByContent<UsageOfUnsupportedApiError>
-
-