Skip to content

TopKOverflowError

Defined in: packages/distillate/src/topk/topk.ts:70

Thrown when an add or union would carry a stored count past 2^32 - 1, or the total past Number.MAX_SAFE_INTEGER. Counts are u32, so a wrapped one would read back below the truth, the one outcome this structure rules out; a total past the safe range is one fromBytes refuses. Every sketch involved is left exactly as it was.

  • RangeError

new TopKOverflowError(message?): TopKOverflowError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104

string

TopKOverflowError

RangeError.constructor

new TopKOverflowError(message?, options?): TopKOverflowError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104

string

ErrorOptions

TopKOverflowError

RangeError.constructor

new TopKOverflowError(message?): TopKOverflowError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104

string

TopKOverflowError

RangeError.constructor

new TopKOverflowError(message?, options?): TopKOverflowError

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104

string

ErrorOptions

TopKOverflowError

RangeError.constructor

optional cause?: unknown

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26

RangeError.cause


message: string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077

RangeError.message


readonly name: "TopKOverflowError" = "TopKOverflowError"

Defined in: packages/distillate/src/topk/topk.ts:72

Discriminates this error from other Errors.

RangeError.name


optional stack?: string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078

RangeError.stack