Defined in: packages/cache/src/errors.ts:31
Thrown when a cache is constructed with options that cannot bound it, when a write or clock reading violates the cache’s contract, or when a custom eviction policy names a victim the cache cannot evict or calls back into its own cache.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CacheInvalidInputError(
code,message):CacheInvalidInputError
Defined in: packages/errors/src/index.ts:40
Parameters
Section titled “Parameters”"INVALID_CAPACITY" | "INVALID_WEIGHT" | "ENTRY_TOO_HEAVY" | "INVALID_VALUE" | "INVALID_TIME_TO_LIVE" | "MISSING_CLOCK" | "INVALID_CLOCK_READING" | "INVALID_VICTIM" | "REENTRANT_POLICY"
message
Section titled “message”string
Returns
Section titled “Returns”CacheInvalidInputError
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”moduleName
Section titled “moduleName”
readonlymoduleName:"knotkit/cache"
Defined in: packages/cache/src/errors.ts:32
Overrides
Section titled “Overrides”
readonly_tag:"InvalidInputError"
Defined in: packages/errors/src/index.ts:38
Inherited from
Section titled “Inherited from”
readonlycode:"INVALID_CAPACITY"|"INVALID_WEIGHT"|"ENTRY_TOO_HEAVY"|"INVALID_VALUE"|"INVALID_TIME_TO_LIVE"|"MISSING_CLOCK"|"INVALID_CLOCK_READING"|"INVALID_VICTIM"|"REENTRANT_POLICY"
Defined in: packages/errors/src/index.ts:41