Automations - Try - Catch Functionality
Try and Catch Blocks surround the automation steps for which you want to catch and process exceptions. The Try block indicates the start of the logic series, and the Catch block sets the exceptions you want to catch and how to process them. This topic describes...
You have these options for inserting Try-Catch blocks on an execution path:
Click the Insert a Try Block button
and then click on the execution link prior to the automation blocks
that may cause an exception.
Next, click the Insert
a Catch Block button and then click on the execution link directly
following the possible exception occurrence.
Click on the automation blocks that may cause an exception and click the Wrap in a Try..Catch Block button.
This automation uses the Try-Catch block to handle an exception that could occur if executing the CheckLength Java script fails for a web application login page:
Selecting Available Exceptions
Numerous exceptions are available for each Catch object, depending on the type of object associated with the Try block, by clicking the ... (ellipsis) button that is displayed when you click on an exception item inside of the Catch block.
This window is displayed when you click the ... (ellipsis) button:
Privacy | Trademarks | Terms of Use | Feedback
Updated: 01 July 2024
© 2016 - 2024 Pegasystems Inc. Cambridge, MA All rights reserved.