Skip to content

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

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.

Code extends string

new InvalidInputError<Code>(code, message): InvalidInputError<Code>

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

Code

string

InvalidInputError<Code>

KnotkitError.constructor

abstract readonly moduleName: ModuleName

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

KnotkitError.moduleName


readonly _tag: "InvalidInputError"

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

KnotkitError._tag


readonly code: Code

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

KnotkitError.code