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.
Extends
Section titled “Extends”RangeError
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TopKOverflowError(
message?):TopKOverflowError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”TopKOverflowError
Inherited from
Section titled “Inherited from”RangeError.constructor
Constructor
Section titled “Constructor”new TopKOverflowError(
message?,options?):TopKOverflowError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”TopKOverflowError
Inherited from
Section titled “Inherited from”RangeError.constructor
Constructor
Section titled “Constructor”new TopKOverflowError(
message?):TopKOverflowError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”TopKOverflowError
Inherited from
Section titled “Inherited from”RangeError.constructor
Constructor
Section titled “Constructor”new TopKOverflowError(
message?,options?):TopKOverflowError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1104
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”TopKOverflowError
Inherited from
Section titled “Inherited from”RangeError.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”RangeError.cause
message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”RangeError.message
readonlyname:"TopKOverflowError"="TopKOverflowError"
Defined in: packages/distillate/src/topk/topk.ts:72
Discriminates this error from other Errors.
Overrides
Section titled “Overrides”RangeError.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”RangeError.stack