Skip to content

PromptScript API


Class: SemverNoMatchError

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

No version satisfying the requested semver range.

Extends

Constructors

Constructor

new SemverNoMatchError(range, repoUrl, latest?, location?): SemverNoMatchError

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

Parameters

range

string

repoUrl

string

latest?

string

location?

SourceLocation

Returns

SemverNoMatchError

Overrides

ResolveError.constructor

Properties

cause?

readonly optional cause: Error

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

Original error if wrapping another error

Inherited from

ResolveError.cause


code

readonly code: string

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

Error code

Inherited from

ResolveError.code


latest?

readonly optional latest: string

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


location?

readonly optional location: SourceLocation

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

Source location where error occurred

Inherited from

ResolveError.location


range

readonly range: string

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

Methods

format()

format(): string

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

Format error for display.

Returns

string

Inherited from

ResolveError.format


toJSON()

toJSON(): Record\<string, unknown>

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

Convert to JSON-serializable object.

Returns

Record\<string, unknown>

Inherited from

ResolveError.toJSON