Throw activity

You can use this activity to specify the type of exception that must be generated or thrown when running an automation. A custom error message can also be included in this activity.

When the Throw activity is run, the specified exception is generated along with the message.

See, RPA flow to use the Throw and Rethrow activities example.