Class: MissingParamError¶
Defined in: core/src/errors/template.ts:13
Error thrown when a required template parameter is not provided.
Example¶
// Parent defines: projectName: string (required)
// Child uses: @inherit ./parent() // Missing projectName
Extends¶
Constructors¶
Constructor¶
new MissingParamError(
paramName,templatePath,options?):MissingParamError
Defined in: core/src/errors/template.ts:19
Parameters¶
paramName¶
string
templatePath¶
string
options?¶
location?¶
Returns¶
MissingParamError
Overrides¶
Properties¶
cause?¶
readonlyoptionalcause:Error
Defined in: core/src/errors/base.ts:43
Original error if wrapping another error
Inherited from¶
code¶
readonlycode:string
Defined in: core/src/errors/base.ts:39
Error code
Inherited from¶
location?¶
readonlyoptionallocation:SourceLocation
Defined in: core/src/errors/base.ts:41
Source location where error occurred
Inherited from¶
paramName¶
readonlyparamName:string
Defined in: core/src/errors/template.ts:15
Name of the missing parameter
templatePath¶
readonlytemplatePath:string
Defined in: core/src/errors/template.ts:17
Path of the template file
Methods¶
format()¶
format():
string
Defined in: core/src/errors/base.ts:66
Format error for display.
Returns¶
string
Inherited from¶
toJSON()¶
toJSON():
Record\<string,unknown>
Defined in: core/src/errors/base.ts:79
Convert to JSON-serializable object.
Returns¶
Record\<string, unknown>