ExpectedValueOfTypeError
Error thrown when the expected value type differs from the given value type. It also displays the expected type. 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 ExpectedValueOfTypeError(expectedType: string, paramName: string): ExpectedValueOfTypeError
Defined in src/errors.ts:177
Parameters:
| Name | Type |
|---|---|
expectedType | string |
paramName | string |
Returns: ExpectedValueOfTypeError
Properties
Section titled “Properties”message
Section titled “message”• message: string
• name: string
• stack? : undefined | string
▪ Error: ErrorConstructor