Try action in Error handler
- Updated: 2023/07/03
Try action in Error handler
The Try action in the Error handler package can be used to add the other actions for the bot.
Settings
By including the Catch action, an error or exception message is displayed when any of the actions that you have added in the Try action encounter an error. If the bot does not encounter any errors, execution continues to the Finally action if it exists. Consider the following example of using the Try action where you want to copy a file from one location to another, and open it. The following image shows the Copy and Open actions in the Try action:
In the above scenario, an error can occur for the following:
- If the file that you are trying to copy does not exist.
- If you have specified a wrong filepath in the Copy actionand the file was copied elsewhere.