I want to catch all exceptions raised by automation and process it. I tried using the ExceptionThrown event in automation. But it did not work. When is this event raised ? How can I catch all exceptions raised by automation as sometimes they are unexpected.
Can you please show me a sample to implement the ExceptionThrown event?
Using the built in logging (when enabled) all exceptions will be logged to the local machine. Exceptions can be handled by using Try and Catch blocks in your automations. You should use exception handling to ensure that your Robotic Activities complete - an unhandled exception on a Robotic Activity will cause the robot to stop receiving new assignments.
The help system has quite a bit of documentation on the Diagnostic Logging capability. I would suggest starting there.