cancel
Showing results for 
Search instead for 
Did you mean: 

Exception Handling

SurajJadhav
Level 5
Hello Guys ,   I am trying to understand exception handling. I have a small problem i have designed a flowchart where exception is generated and recovered. there are 2 recover stages and 2 exceptions. As per the Guide if an exception occurs in recovery mode process is terminated. But in my case it goes into infinite loop. When i run the process only for first time the exception in calculation stage is caught by recover1 stage from second time it caught by recover2 and goes into infinite loop i have used block but still this is happening. The process flow is attached as a image please try to execute this and see what exactly happens and please try to execute process step by step. If anyone found out why is this happening please reply me.   thank you
4 REPLIES 4

John__Carter
Staff
Staff
When a Recover is inside a block it will take responsibility for any exception occurring from inside the block, so you Recover1 catches the exception from Calc1. A Recover that is not in a block takes responsibility for exceptions coming from outside any block on the page, so your Exception1 is caught at Recover2. However this exception is not neutralised (Resumed) and you go back to Calc1, and a second exception comes into play. This is probably the root of your problem - the golden rule is to avoid having more than 1 exception at a time.

SurajJadhav
Level 5
Hello John ,   Thanks for the reply you are right but my question is when exception occurs in recovery mode your process get terminated(as per guide) , but in my case it goes into infinite loop and i didn't got the reason what do you think why is this happening. 1. The first exception some how get neutralized.  

Anonymous
Not applicable
Hi suraj when exception is raising from Calc1 stage, it is recovered from recover stage1 and after resume again there is exception stage exception1 so here the exception which was raised is neutralized but a new excption is raising from exception from Exception1(if preserve check box is unticked) and this time it will be caught by recover2 and it will pass calc2 stage and when it will goto calc1 stage again exception will be raised which will be recovered by recover1 and it will fall in infinite loop.

SurajJadhav
Level 5
hello Kumar ,   Thanks for the reply but for second time the calc1 stages exception is recovered by recover2 not by recover1 and then it goes in infinite loop.