Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Robotic Process Automation

You're reading from   Learning Robotic Process Automation Create Software robots and automate business processes with the leading RPA tool – UiPath

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788470940
Length 360 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Alok Mani Tripathi Alok Mani Tripathi
Author Profile Icon Alok Mani Tripathi
Alok Mani Tripathi
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. What is Robotic Process Automation? FREE CHAPTER 2. Record and Play 3. Sequence, Flowchart, and Control Flow 4. Data Manipulation 5. Taking Control of the Controls 6. Tame that Application with Plugins and Extensions 7. Handling User Events and Assistant Bots 8. Exception Handling, Debugging, and Logging 9. Managing and Maintaining the Code 10. Deploying and Maintaining the Bot 11. Other Books You May Enjoy

Exception handling

Exception handling is a way to handle exceptions for a process that the program or the procedure has failed to execute.

For handling exceptions in a program, the best practice considered is to use the Try catch activity.

The Try catch activity can be found in the Activities panel. By dragging and dropping the Try catch activity into the workspace, we can handle exceptions. For handling errors in the Try catch block, we can divide the whole process into four parts just to make it simpler:

  • Drag and drop the Try catch activity
  • Try block
  • Catch block
  • Finally block

Let's build a Try catch block to handle exceptions, in following steps:

  1. Drag and drop the Try catch activity: Create a blank project. Drag and drop the Flowchart activity into the Designer panel. Search for the Try catch activity in the Activities panel and drag it into the Flowchart. Set it as...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image