UnknownParamError
Defined in: core/src/errors/template.ts:40
Error thrown when an unknown parameter is provided to a template.
Example
// Parent defines: projectName: string// Child uses: @inherit ./parent(projectName: "app", unknownParam: "foo")Extends
Constructors
Constructor
new UnknownParamError(
paramName,templatePath,availableParams,options?):UnknownParamError
Defined in: core/src/errors/template.ts:48
Parameters
paramName
string
templatePath
string
availableParams
string[]
options?
location?
Returns
UnknownParamError
Overrides
Properties
availableParams
readonlyavailableParams:string[]
Defined in: core/src/errors/template.ts:46
Available parameter names
cause?
readonlyoptionalcause?:Error
Defined in: core/src/errors/base.ts:56
Original error if wrapping another error
Inherited from
code
readonlycode:string
Defined in: core/src/errors/base.ts:52
Error code
Inherited from
location?
readonlyoptionallocation?:SourceLocation
Defined in: core/src/errors/base.ts:54
Source location where error occurred
Inherited from
paramName
readonlyparamName:string
Defined in: core/src/errors/template.ts:42
Name of the unknown parameter
templatePath
readonlytemplatePath:string
Defined in: core/src/errors/template.ts:44
Path of the template file
Methods
format()
format():
string
Defined in: core/src/errors/base.ts:79
Format error for display.
Returns
string
Inherited from
toJSON()
toJSON():
Record<string,unknown>
Defined in: core/src/errors/base.ts:92
Convert to JSON-serializable object.
Returns
Record<string, unknown>