Defined in: packages/sampling/src/errors.ts:27
Thrown when sampling inputs cannot describe the requested distribution.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SamplingInvalidInputError(
code,message):SamplingInvalidInputError
Defined in: packages/errors/src/index.ts:40
Parameters
Section titled “Parameters”"INVALID_RANGE" | "INVALID_CAPACITY" | "INVALID_WEIGHT" | "INVALID_POPULATION_SIZE" | "INVALID_SAMPLE_SIZE" | "INVALID_GAP" | "INVALID_LOG_WEIGHT" | "ZERO_TOTAL_WEIGHT" | "INSUFFICIENT_POSITIVE_WEIGHT" | "STREAM_LIMIT_EXCEEDED"
message
Section titled “message”string
Returns
Section titled “Returns”SamplingInvalidInputError
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_RANGE"|"INVALID_CAPACITY"|"INVALID_WEIGHT"|"INVALID_POPULATION_SIZE"|"INVALID_SAMPLE_SIZE"|"INVALID_GAP"|"INVALID_LOG_WEIGHT"|"ZERO_TOTAL_WEIGHT"|"INSUFFICIENT_POSITIVE_WEIGHT"|"STREAM_LIMIT_EXCEEDED"
Defined in: packages/errors/src/index.ts:41
Inherited from
Section titled “Inherited from”moduleName
Section titled “moduleName”
readonlymoduleName:"knotkit/sampling"
Defined in: packages/sampling/src/errors.ts:28