|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exception Handling requirements... |
« View previous topic :: View next topic » |
Author |
Message
|
saini |
Posted: Wed Aug 02, 2006 9:42 am Post subject: Exception Handling requirements... |
|
|
Novice
Joined: 28 Feb 2002 Posts: 24
|
Folks:
I have a requirement for a nested exception handler. The subflow needs an exception handler to handle the inner exception. However, if it can't handle that exception I need to re-throw the exception to the outer main flow exception handler.
Is there a way to re-throw the ExceptionList from innner handler to outer handler? If I use the "throw" node the exception becomes a "User exception" which is NOT what I am looking for.
Any guidance is much appreciated. Thanks!
Best regards,
Saini |
|
Back to top |
|
 |
wbibrk |
Posted: Wed Aug 02, 2006 1:19 pm Post subject: |
|
|
Apprentice
Joined: 09 Jul 2005 Posts: 46
|
Hi,
The concept of subflow and mainflow is only for visual representation. By the time, the compiled message flow is formed, all the flows are flattened so if an exception occurs it is propagated downstream |
|
Back to top |
|
 |
saini |
Posted: Thu Aug 03, 2006 3:46 am Post subject: |
|
|
Novice
Joined: 28 Feb 2002 Posts: 24
|
Yes I agree. My requirement is to have two try/catch constructs. The inner one needs to capture and handle a specific error. However, if it not that kind of error I need to rethrow that exception so the outer handler (which is more generic) can handle the exception. |
|
Back to top |
|
 |
madi |
Posted: Fri Aug 04, 2006 10:26 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
i dont know if this helps but here is an idea
connect your catch terminal of the inner try-catch to both your inner exception handler as well as outer one
if it is your specific error, you ignore it in your outer exception handler and if it is any other exception, you ignore it in the inner exception handler
i can also think more complicated approaches ... but this should take care of your "requirement"
--madi |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|