Skip to content

Defined in: packages/e-graph/src/errors.ts:8

Thrown when a caller passes an argument or object that violates a public contract: an out-of-range value, a malformed id, or an object not produced by the package’s own factories.

Abstract so every concrete instance belongs to the throwing package’s own subclass, which fixes Code to that package’s error-code union and gives .name a package-specific value.

new EGraphInvalidInputError(code, message): EGraphInvalidInputError

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

"FOREIGN_CLASS" | "INVALID_COST" | "COST_OVERFLOW"

string

EGraphInvalidInputError

InvalidInputError.constructor

readonly moduleName: "knotkit/e-graph"

Defined in: packages/e-graph/src/errors.ts:9

InvalidInputError.moduleName


readonly _tag: "InvalidInputError"

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

InvalidInputError._tag


readonly code: "FOREIGN_CLASS" | "INVALID_COST" | "COST_OVERFLOW"

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

InvalidInputError.code