Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Unable throw customized exception

I was trying to create an exception block I have attached a function to it.

I want to handle an exception like number format exception. How can i do it?


Best Answer

Hi Gayatri,


In order to handle this error, you need to create an Exception handling logic with an Exception Block. Create an Exception Block and advice to run an error handling function in case any Action throws an error. 

In that function, the last exception (Get Last Exception Action) message can be captured, so as to write it in a text file on the desktop (or in any generic path you wish) or send it via email for instance. 

This way for anything that happens within your process, you will be able to see what the error was and act accordingly or edit your process before compiling it again.

You can also check a related Process by navigating to the following link: Global error handling in compiled Processes

1 Comment

ADMIN
Answer

Hi Gayatri,


In order to handle this error, you need to create an Exception handling logic with an Exception Block. Create an Exception Block and advice to run an error handling function in case any Action throws an error. 

In that function, the last exception (Get Last Exception Action) message can be captured, so as to write it in a text file on the desktop (or in any generic path you wish) or send it via email for instance. 

This way for anything that happens within your process, you will be able to see what the error was and act accordingly or edit your process before compiling it again.

You can also check a related Process by navigating to the following link: Global error handling in compiled Processes

Login or Signup to post a comment