This is the ThingsDB documentation for version v0, click here for the latest version!
Returns an error when an operation is not valid within the current context.
This function does not generate an event.
operation_err([message])
Argument | Type | Description |
---|---|---|
message | str (optional) | Alternative error message. |
An error value.
This code shows operation_err():
operation_err();
Return value in JSON format
{
"!": "operation_err()",
"error_code": -63,
"error_msg": "operation is not valid in the current context"
}