Not Handling exception

I used get last modified activity
catch-File not found exception.
It is not going in catch block directly throwing error

it would actually
kindly use exception type as SYSTEM.EXCEPTION in the catch block so that it would take all the exceptions that occur
if possible can i have a view on the error message with the exception type in the prompt message that we get when executing

mostly system.exception will work for sure
kindly try with that once pls
Cheers @KarthikBallary

Okay we will check and let you know. Thank you

System.Exception-will handle only system related issues ryt?
I am geeting Uipath.Core.Selector.Invalid…
IS there common exception for all?

1 Like

yah ofcourse SYSTEM.EXCEPTION will that exception in common
that would work for sure
for example just run like this
–use a click activity and select on a element of a application
–close that application
–now try executing without try catchblock we will get a error
–and then put that click within Try block and in Catch block use a writeline activity and mention as “Error”
–now the error message will get displayed rather it wont show any error

hope this would help you
Cheers @KarthikBallary

Cheers @KarthikBallary

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.