Defined in: packages/rate-limit/src/errors.ts:29
Thrown when a rate limit is constructed with parameters it cannot honour exactly, when a request carries a weight that is not a positive safe integer, or when the injected clock returns a number that is not finite.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RateLimitInvalidInputError(
code,message):RateLimitInvalidInputError
Defined in: packages/errors/src/index.ts:40
Parameters
Section titled “Parameters”"INVALID_CAPACITY" | "INVALID_WEIGHT" | "INVALID_CLOCK_READING" | "INVALID_WINDOW_DURATION" | "INVALID_REFILL_AMOUNT" | "INVALID_MAX_KEY_COUNT" | "INVALID_WHEN_FULL" | "PARAMETERS_TOO_LARGE"
message
Section titled “message”string
Returns
Section titled “Returns”RateLimitInvalidInputError
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”
readonly_tag:"InvalidInputError"
Defined in: packages/errors/src/index.ts:38
Inherited from
Section titled “Inherited from”
readonlycode:"INVALID_CAPACITY"|"INVALID_WEIGHT"|"INVALID_CLOCK_READING"|"INVALID_WINDOW_DURATION"|"INVALID_REFILL_AMOUNT"|"INVALID_MAX_KEY_COUNT"|"INVALID_WHEN_FULL"|"PARAMETERS_TOO_LARGE"
Defined in: packages/errors/src/index.ts:41
Inherited from
Section titled “Inherited from”moduleName
Section titled “moduleName”
readonlymoduleName:"knotkit/rate-limit"
Defined in: packages/rate-limit/src/errors.ts:30