Defined in: packages/scalar-sketch/src/errors.ts:55
Thrown for invalid options, foreign sketches, incompatibility, capacity, or arithmetic failure.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ScalarSketchInvalidInputError(
code,message):ScalarSketchInvalidInputError
Defined in: packages/errors/src/index.ts:40
Parameters
Section titled “Parameters”"INVALID_WEIGHT" | "INVALID_DIMENSION" | "INVALID_PROBABILITY" | "FOREIGN_STRUCTURE" | "INVALID_PRECISION" | "INVALID_SIGNATURE_SIZE" | "STATE_TOO_LARGE" | "WRONG_FAMILY" | "INCOMPATIBLE_SKETCH" | "INVALID_REDUCTION" | "CAPACITY_EXCEEDED" | "COUNTER_OVERFLOW"
message
Section titled “message”string
Returns
Section titled “Returns”ScalarSketchInvalidInputError
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_WEIGHT"|"INVALID_DIMENSION"|"INVALID_PROBABILITY"|"FOREIGN_STRUCTURE"|"INVALID_PRECISION"|"INVALID_SIGNATURE_SIZE"|"STATE_TOO_LARGE"|"WRONG_FAMILY"|"INCOMPATIBLE_SKETCH"|"INVALID_REDUCTION"|"CAPACITY_EXCEEDED"|"COUNTER_OVERFLOW"
Defined in: packages/errors/src/index.ts:41
Inherited from
Section titled “Inherited from”moduleName
Section titled “moduleName”
readonlymoduleName:"knotkit/scalar-sketch"
Defined in: packages/scalar-sketch/src/errors.ts:56