number 1 is the error message from UiPath without try…catch and 2 is a message from try…catch. On 1 it’s very easy to found error. how can I get this message:“Click ‘;Product Default’:Multiple similar matches found.”
You need to use the try catch if you need to get the error message becuase while executing the bot if any error occurs then the bot gets stopped immediately at that particular point and won’t go for further steps so using a try catch will help the bot to go further into the catch block and then it will execute the exception message over there and you can store that message or else you can display that message in any manner as per your requirement.