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

cancelled_err

Returns an error when an operation is cancelled before completion. Fox example by a time-out or stop of service.

This function does not generate an event.

Function

cancelled_err([message])

Arguments

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

Return value

An error value.

Example

This code shows cancelled_err():

cancelled_err();

Return value in JSON format

{
    "!": "cancelled_err()",
    "error_code": -64,
    "error_msg": "operation is cancelled before completion"
}