This is the ThingsDB documentation for version v0, click here for the latest version!
Returns an error when a given value is of the incorrect type.
This function does not generate an event.
type_err([message])
Argument | Type | Description |
---|---|---|
message | str (optional) | Alternative error message. |
An error value.
This code shows type_err():
type_err();
Return value in JSON format
{
"!": "type_err()",
"error_code": -61,
"error_msg": "object of inappropriate type"
}