Piecewise

Build chat bots with blocks

try (statements) 🔥 catch error as (error) (catch)

In System → Error Handling

Jump to block

Run code, and if an error occurs, execute the catch block set.

Parameters

Parameter name Parameter type Required? Description
statements statements… The statements to execute.
error String The name of the variable to store the error message in.
catch statements… The statements to execute if an error occurs.

Output

void - This is a statement with no outputs