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?¶
Returns¶
SemverNoMatchError
Overrides¶
Properties¶
cause?¶
readonlyoptionalcause?:Error
Defined in: core/src/errors/base.ts:55
Original error if wrapping another error
Inherited from¶
code¶
readonlycode:string
Defined in: core/src/errors/base.ts:51
Error code
Inherited from¶
latest?¶
readonlyoptionallatest?:string
Defined in: core/src/errors/registry.ts:47
location?¶
readonlyoptionallocation?:SourceLocation
Defined in: core/src/errors/base.ts:53
Source location where error occurred
Inherited from¶
range¶
readonlyrange:string
Defined in: core/src/errors/registry.ts:46
Methods¶
format()¶
format():
string
Defined in: core/src/errors/base.ts:78
Format error for display.
Returns¶
string
Inherited from¶
toJSON()¶
toJSON():
Record\<string,unknown>
Defined in: core/src/errors/base.ts:91
Convert to JSON-serializable object.
Returns¶
Record\<string, unknown>