Skip to content

PromptScript API


Class: OutputPlanPathError

Defined in: core/src/output-plan.ts:119

Error raised when a formatter emits a path that cannot be represented as a project-relative output.

Extends

Constructors

Constructor

new OutputPlanPathError(path): OutputPlanPathError

Defined in: core/src/output-plan.ts:123

Parameters

path

string

Returns

OutputPlanPathError

Overrides

PSError.constructor

Properties

cause?

readonly optional cause?: Error

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

Original error if wrapping another error

Inherited from

PSError.cause


code

readonly code: string

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

Error code

Inherited from

PSError.code


location?

readonly optional location?: SourceLocation

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

Source location where error occurred

Inherited from

PSError.location


path

readonly path: string

Defined in: core/src/output-plan.ts:121

Invalid formatter path.

Methods

format()

format(): string

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

Format error for display.

Returns

string

Inherited from

PSError.format


toJSON()

toJSON(): Record\<string, unknown>

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

Convert to JSON-serializable object.

Returns

Record\<string, unknown>

Inherited from

PSError.toJSON