Articles → UIPATH → Try catch activity in UiPath

Try catch activity in UiPath






Purpose













Example










Picture showing the open application activity inside the try block

Click to Enlarge



Picture showing the selector editor with the application name changes from notepad to notepad1

Click to Enlarge



Picture showing the Catch block to select the type of exception

Click to Enlarge



Picture showing the message box inside the catch block

Click to Enlarge



Picture showing the message box inside the finally block

Click to Enlarge




Output


Picture showing the execution of catch block when an exception occurs and the finally block

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, February 19, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250