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 » ACE 12 Throw exception with same initial ExceptionList tree

Post new topic  Reply to topic
 ACE 12 Throw exception with same initial ExceptionList tree « View previous topic :: View next topic » 
Author Message
AIIBA
PostPosted: Mon Feb 27, 2023 1:55 am    Post subject: ACE 12 Throw exception with same initial ExceptionList tree Reply with quote

Newbie

Joined: 07 Nov 2022
Posts: 3

Hello everyone,

Is it possible to throw an exception with the same ExceptionList tree as before?
I am asking this because I'm using a Try Catch node to ignore certain errors and continue with the logic, otherwise I will need to trigger an exception with the exact same ExceptionList tree as it was originally created by the error scenario itself.

All the best!
Back to top
View user's profile Send private message
silly_name
PostPosted: Mon Feb 27, 2023 4:25 pm    Post subject: Re: ACE 12 Throw exception with same initial ExceptionList t Reply with quote

Newbie

Joined: 26 Oct 2021
Posts: 5

AIIBA wrote:
Hello everyone,

Is it possible to throw an exception with the same ExceptionList tree as before?
I am asking this because I'm using a Try Catch node to ignore certain errors and continue with the logic, otherwise I will need to trigger an exception with the exact same ExceptionList tree as it was originally created by the error scenario itself.

All the best!


In short no, you cannot do that with a try catch. Common practice is to parse the exception tree, extract the useful information and throw a new exception with the relevant information.

P.S. You can however do that in an ESQL handler via the RESIGNAL statement. Search button is you friend.
http://www.mqseries.net/phpBB/viewtopic.php?t=70185&sid=f0f01ad4b7b8fd248151126949ae3005
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 » ACE 12 Throw exception with same initial ExceptionList tree
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.