api › errors › InvalidMapFormatError
Will be thrown if a map in JSON format is lacking attributes or has attributes with unexpected types/values. It will also be thrown, if a map's node is malformatted in KPMap.parse.
-
↳ InvalidMapFormatError
+ new InvalidMapFormatError(msg
: string): InvalidMapFormatError
Defined in src/errors/InvalidMapFormatError.ts:11
Creates a new InvalidMapFormatError - usually with the default error message.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
msg |
string | "Invalid map format!" | The error message. |
Returns: InvalidMapFormatError
• message: string
Inherited from DuplicateSessionError.message
Defined in node_modules/typescript/lib/lib.es5.d.ts:974
• name: string
Inherited from DuplicateSessionError.name
Defined in node_modules/typescript/lib/lib.es5.d.ts:973
• stack? : string
Inherited from DuplicateSessionError.stack
Defined in node_modules/typescript/lib/lib.es5.d.ts:975
▪ Error: ErrorConstructor
Defined in node_modules/typescript/lib/lib.es5.d.ts:984