Posted: Fri Apr 18, 2008 4:57 am Post subject: Passing errors from Broker schema level functions
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?
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