This is the ThingsDB documentation for version v0, click here for the latest version!
Returns the error message of an error type.
This function does not generate an event.
error.msg()
None
Returns error message of an error.
This code uses
code()
to return the error code for an error:
type_err("incorrect type").msg();
Return value in JSON format
"incorrect type"