Skip to content

PromptScript API


Class: RegistryPathNotFoundError

Defined in: core/src/errors/registry.ts:25

Path not found within registry repository.

Extends

Constructors

Constructor

new RegistryPathNotFoundError(importPath, available, location?): RegistryPathNotFoundError

Defined in: core/src/errors/registry.ts:29

Parameters

importPath

string

available

string[]

location?

SourceLocation

Returns

RegistryPathNotFoundError

Overrides

ResolveError.constructor

Properties

available

readonly available: string[]

Defined in: core/src/errors/registry.ts:27


cause?

readonly optional cause?: Error

Defined in: core/src/errors/base.ts:55

Original error if wrapping another error

Inherited from

ResolveError.cause


code

readonly code: string

Defined in: core/src/errors/base.ts:51

Error code

Inherited from

ResolveError.code


importPath

readonly importPath: string

Defined in: core/src/errors/registry.ts:26


location?

readonly optional location?: SourceLocation

Defined in: core/src/errors/base.ts:53

Source location where error occurred

Inherited from

ResolveError.location

Methods

format()

format(): string

Defined in: core/src/errors/base.ts:78

Format error for display.

Returns

string

Inherited from

ResolveError.format


toJSON()

toJSON(): Record\<string, unknown>

Defined in: core/src/errors/base.ts:91

Convert to JSON-serializable object.

Returns

Record\<string, unknown>

Inherited from

ResolveError.toJSON