Skip to content

Defined in: packages/sorted-block/src/errors.ts:53

Thrown when a caller passes a restart interval that is not a positive safe integer, an entry or key that is not bytes, entries out of strictly ascending byte order, a range whose end sorts before its start, more entries or bytes than one block addresses, or an object this package did not produce to serializeSortedBlock.

new SortedBlockInvalidInputError(code, message): SortedBlockInvalidInputError

Defined in: packages/errors/src/index.ts:40

"INVALID_RANGE" | "MAX_CAPACITY_EXCEEDED" | "INVALID_KEY" | "INVALID_RESTART_INTERVAL" | "INVALID_ENTRY" | "UNSORTED_KEY" | "DUPLICATE_KEY" | "FOREIGN_SORTED_BLOCK"

string

SortedBlockInvalidInputError

InvalidInputError.constructor

readonly _tag: "InvalidInputError"

Defined in: packages/errors/src/index.ts:38

InvalidInputError._tag


readonly code: "INVALID_RANGE" | "MAX_CAPACITY_EXCEEDED" | "INVALID_KEY" | "INVALID_RESTART_INTERVAL" | "INVALID_ENTRY" | "UNSORTED_KEY" | "DUPLICATE_KEY" | "FOREIGN_SORTED_BLOCK"

Defined in: packages/errors/src/index.ts:41

InvalidInputError.code


readonly moduleName: "knotkit/sorted-block"

Defined in: packages/sorted-block/src/errors.ts:54

InvalidInputError.moduleName