This is the ThingsDB documentation for version v0, click here for the latest version!

operation_err

Returns an error when an operation is not valid within the current context.

This function does not generate an event.

Function

operation_err([message])

Arguments

Argument Type Description
message str (optional) Alternative error message.

Return value

An error value.

Example

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"
}