ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Exception Handling requirements...

Post new topic  Reply to topic
 Exception Handling requirements... « View previous topic :: View next topic » 
Author Message
saini
PostPosted: Wed Aug 02, 2006 9:42 am    Post subject: Exception Handling requirements... Reply with quote

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
View user's profile Send private message
wbibrk
PostPosted: Wed Aug 02, 2006 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
saini
PostPosted: Thu Aug 03, 2006 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
madi
PostPosted: Fri Aug 04, 2006 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Exception Handling requirements...
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.