try (statements) 🔥 catch error as (error) (catch)
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