Skip to content

PromptScript API


Class: ResolveError

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

Error during resolution phase.

Extends

Extended by

Constructors

Constructor

new ResolveError(message, location?, code?): ResolveError

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

Parameters

message

string

location?

SourceLocation

code?

ErrorCode = ErrorCode.RESOLVE_ERROR

Returns

ResolveError

Overrides

PSError.constructor

Properties

cause?

readonly optional cause: Error

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

Original error if wrapping another error

Inherited from

PSError.cause


code

readonly code: string

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

Error code

Inherited from

PSError.code


location?

readonly optional location: SourceLocation

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

Source location where error occurred

Inherited from

PSError.location

Methods

format()

format(): string

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

Format error for display.

Returns

string

Inherited from

PSError.format


toJSON()

toJSON(): Record\<string, unknown>

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

Convert to JSON-serializable object.

Returns

Record\<string, unknown>

Inherited from

PSError.toJSON