Exception Handling

Hi,

I created an exception stage and enabled the preserve checkbox. I saw the error in error details
"
Page: Div
Stage: Exception1
Type: Error
Action: Validate
Description: Exception stage wants to use existing exception information, but there can be no existing exception there
Repairable: No
"
Can anyone please explain what this error mean? Also when i uncheck the preserve box, I am not getting this error. Please help!

Thanks!
 

arun_pmss

New Member
Hi Avinash,

When you are selecting Preserve Exception, it means that you want to re-throw an exception that occurred in the child pages or the previous page.
 
Hi Arun,

Thanks for taking your time to reply. Understood. I am trying to throw this excepting from object studio to the page thats calling it. I had created an exception and used preserve check box to throw and exception incase if my object is unable to find the element. But in error list i see the error as described. How do i resolve this or what actually causes this error ?
 

VJR

Well-Known Member
Hi,

I created an exception stage and enabled the preserve checkbox. I saw the error in error details
"
Page: Div
Stage: Exception1
Type: Error
Action: Validate
Description: Exception stage wants to use existing exception information, but there can be no existing exception there
Repairable: No
"
Can anyone please explain what this error mean? Also when i uncheck the preserve box, I am not getting this error. Please help!

Thanks!
I was able to recreate your scenario. An Exception stage with the Preserve ticked is used where you want to intentionally throw an error. And if you are intentionally throwing it then you obviously cannot leave it blank (which happens when you tick it) and you need to give the Error type and details. You cannot give these details because the boxes become disabled and so you need to untick it.

If you plan to keep the Preserve box ticked then you could use a Recover stage pointing to the Exception stage (with tick). If you have many other stages in the diagram which can cause an error then use a Block stage for the Recover and the other stage where you are throwing the error. The diagram will come to the Recover stage only when it has an error - meaning only when it has the error detail and type. So you are satisfying what the below error statement is trying to say.
Description: Exception stage wants to use existing exception information, but there can be no existing exception there
 

cpsttsmilyface

New Member
If the Object is throwing a System Exception, and the Ex' Type is filled, and the Ex' Detail is filled, will that 'Preserve..' check box need checked? Or not? Please and thank you.
 
Top