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 » Passing errors from Broker schema level functions

Post new topic  Reply to topic
 Passing errors from Broker schema level functions « View previous topic :: View next topic » 
Author Message
m.schneider
PostPosted: Fri Apr 18, 2008 4:57 am    Post subject: Passing errors from Broker schema level functions Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

What is the best approach to pass errors from broker schema level functions to the calling module?
I'm developing a function that will be reused from other modules. Within this function different errors can occur. How do I pass these to the caller?

A
I figured that I could pass a reference to the environment as a parameter of the function and write the erros to the environment to progress the error from the caller.

B
I could pass a reference to an errorvariable from the caller as an INOUT parameter that I could query after the call.

Where are the advantages disavantages? Are there alternatives?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Apr 18, 2008 5:01 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Come up with a Error Handling Flow

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
m.schneider
PostPosted: Fri Apr 18, 2008 5:57 am    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

That doesn't solve the problem, ...

To keep the function generalized I don't want to pass a reference to InputRoot. But in the InputRoot are data that I provide to the exception.
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 » Passing errors from Broker schema level functions
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.