TryCatch - Used when an activity may cause an error when executed.
In this case, you can trap the error and decide what to do with it:
Consider the model below:
The GRot activity ( Point Rotate), modifies the angle of the figure.
This angle is used to calculate the points C, D and Aux1 ( Point (XYZ)), which in turn influences the calculation of the PInters point (
Point Intersection), which is the intersection of the lines G - Aux2 and D - Aux1.
When the angle is such that these lines are parallel, PInters fails and throws an exception, which is caught by TryCatch:
tryCatch, when intercepting the error, starts executing Catches:
Note that passing through TryCacth assigns a Polyline to variable
DefVar, using
SetVarTRY or
SetVarCATCH, depends on whether or not an error occurred.
To add activities to the list, choose it from the toolbox and drag it into the sequence, placing it in the position, or order, in which it will be performed
TryCatch cannot be called as a variable, so allow it to have a name that doesn't respect the activity naming rules