Try catch 要怎麼偵測複數的activity

如題:單個活動執行的時候是可以正常執行
image


增加至2個活動就會無法正常的到catches

請問是為甚麼呢?

Hi @guan_yu_Chen

If you are running in Debug Mode enable Continue on Exception in Debug Tab so that it catches the exception.

Try to click Run File and run your process and check if the error is getting catched.

Regards

謝謝您,有正常的顯示出來了,但我在錯誤後不想要繼續執行
這個是模擬的狀況,目前自己在寫的專案是想要讓他離開迴圈,請問這個情況該怎麼做呢?

Hi @guan_yu_Chen

You are executing the bot in debug mode right?

So in such a condition then please click on continue when you are being stopped at the throw activity so that it helps to go further into the catch block and execute the activities that are there in the catch block and also please make sure that the exception given in the throw and also the exception that you have created in catch should be same.

If you execute the bot in run mode then the bot will automatically goes into the catch block if it goes through any throw activity.

Regards

您好 @vrdabberu
好的我了解了 十分感謝您的協助
祝您順心
謝謝

You’re Welcome @guan_yu_Chen

Happy Automation!!

1 Like

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