Skip to content

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

Base class for every error thrown by a knotkit package.

moduleName, _tag, and code let callers inspect a failure without depending on a package-specific subclass identity. This matters when more than one copy of a package is loaded and concrete instanceof checks are unreliable.

  • Error

new KnotkitError(message): KnotkitError

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

string

KnotkitError

Error.constructor

abstract readonly moduleName: ModuleName

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


abstract readonly _tag: string

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


abstract readonly code: string

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