Skip to content

PromptScript API


Class: FileNotFoundError

Defined in: core/src/errors/resolve.ts:21

File not found during resolution.

Extends

Constructors

Constructor

new FileNotFoundError(path, location?): FileNotFoundError

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

Parameters

path

string

location?

SourceLocation

Returns

FileNotFoundError

Overrides

ResolveError.constructor

Properties

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


location?

readonly optional location?: SourceLocation

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

Source location where error occurred

Inherited from

ResolveError.location


path

readonly path: string

Defined in: core/src/errors/resolve.ts:23

Path that was not found

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