Hi, all.
I want to finish my workflow if Error occurs.
Now I use Try/Catch activity and Catch is correct.
But after Catch method, the originally workflow is going on.
I want to do below
・When Error occurs → To show Message box
・User clicks 「OK」 button
・Robot ends its workflow
Please tell me how to solve this.
Thanks and Regards,
MIckey
irahmat
(Indra Rahmat)
July 4, 2018, 3:50am
2
Hi, do you use REFramework?
irahmat
(Indra Rahmat)
July 4, 2018, 4:07am
4
I recommend you to use this framework to solve your issue.
this framework is good for project because of it’s already cover for error exception, queue, asset and screenshot.
Cheers,
Indra
1 Like
Thanks.
I wonder if I can do this without using REFramework.
1 Like
irahmat
(Indra Rahmat)
July 4, 2018, 6:59am
6
You can do it but more effort.
Frobotics
(Francis A. Francisco)
July 4, 2018, 7:29am
7
@Mickey
Hi, You can add THROW activity inside your catch. It will terminate your workflow.
1 Like
Thanks for the reply.
I use THROW activity but it doesn’t work.
Main has thrown an exception
Source: Throw
Message: Error
Exception Type: Exception
Please tell me…
Thanks.
Frobotics
(Francis A. Francisco)
July 4, 2018, 7:49am
9
@Mickey
Replace THROW with RETHROW.
And for the message box.
insert message box before RETHROW.
input ‘exception.message’ to your message box.
it will end your workflow without executing the proceeding activities.
1 Like
Mickey
July 4, 2018, 8:05am
10
Thanks for your idea.
This case occurs Exception Message?
Frobotics
(Francis A. Francisco)
July 4, 2018, 8:20am
11
@Mickey
Yes incase you want to know where the error occurs.
1 Like