Skip to main content

Try-Catch

Overview

Attempts to execute the blocks in the Try section, and then switches to the Catch section if an error occurs. Only catches all errors if Soft Mode is turned off.

To find out more about Soft Mode see here.

When an error is caught, the Try-Catch block will make it available for you to use. To access it, click on the Catch add point and search for it within the Data Section. Use the error


Parameters

ParameterParameterValid BlocksRequired
TryThe list of processes to attemptProcess Block GroupNo
CatchThe list of processes to run if any errors occurred in the Try slotProcess Block GroupNo
ErrorThe details of the error which occurredData Structure Block GroupYes
Local Variable Display ColourThe colour of the local variable in the tree. This is an indicator to help you visualise your loops, it doesn't impact your functions when they run.Colour Block GroupYes