Skip to main content
[Command] Catch
Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

The Catch command is used for catching the message if an error occurs in the Try command. You can define where to save the errorMessage.

Note: A Catch command must be used with a Try command.

Example

This workflow will try to perform "Go to web page", in other words, it will try to open Amazon.com in the built-in browser in RPA and save it as webpage.

If this succeeds, the workflow ends.

If this fails, the the workflow will catch the failure, save it to errorMessage and then print it as a log. The workflow ends.

Did this answer your question?