ExpectedOneOfValuesError
Error thrown when the value was expected to be set for a config parameter. It also displays the expected value. This error might be thrown while setting or updating the ConfigParams. The following methods accept ConfigParams as a parameter:
see buildEmpty
see buildFromArray
see buildFromSheets
see updateConfig
Constructors
Section titled “Constructors”constructor
Section titled “constructor”+ new ExpectedOneOfValuesError(values: string, paramName: string): ExpectedOneOfValuesError
Defined in src/errors.ts:242
Parameters:
| Name | Type |
|---|---|
values | string |
paramName | string |
Returns: ExpectedOneOfValuesError
Properties
Section titled “Properties”message
Section titled “message”• message: string
• name: string
• stack? : undefined | string
▪ Error: ErrorConstructor