How To Use Rethrow In UiPath
Exception handling is one of the most important aspects of any programming, and it is something that will help us control any unseen issues during the executions. UiPath also provides us the same feature to implement robust bots, by using Try Catch activity. It has got two exception activities namely “Throw” and “ReThrow”. In this article, we will try to learn about ReThrow activity… Why ReThrow Activity? “ Rethrow ” activity in UiPath takes an existing exception that has been encountered and regenerates it. ReThrow Activity Example Implementation using UiPath : For the purpose of this example, we will implement a robot, which will ask the user for the input. And we will display him the data back by removing any spaces in it at the beginning or the end. Note: If he doesn’t provide any data, we will log it down first and then try to throw an exception. This activity always comes in the catch block of Try Catch activity Step 1: Drag “Input Dialogue” activity...