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


When an error occurs within a function, an object can be returned. The object, called an error, contains information about the error, including its type and a message.


Function Description
code Return the error code.
msg Return the error message.
Function Description
err Initialize a new error.
raise Raise an error.
try Try a statement and catch if an error is raised.

Build-in errors

See errors for a list of all the build-in error type.