From the course: Complete Guide to UiPath RPA Development

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Simulate an error and handle it

Simulate an error and handle it

- [Speaker] In this lecture, let's simulate an application exception and take a look at how we can elegantly handle it. I'm going to reuse the debug project from the previous section. So if you don't already have that on your computer, be sure to go back to the first or second video of that previous section and download this project if you want to follow along. I'm using it because this project simulates an automation that does several tasks and of course our desire would be to execute this series of tasks from start to finish without interruption. And as a reminder of the outcome, I'll click on design and run. And when I click on my output window down here and toggle my timestamps on, you can see all it really does is to declare a first name variable and then define a counter and increment that counter as it passes through each of these tasks. So in this lecture, we're going to simulate an error in task two here and see how that impacts the automation execution. So I'll close up…

Contents