|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to use a throw node(urgent) |
« View previous topic :: View next topic » |
Author |
Message
|
k.srinivas |
Posted: Wed Apr 21, 2004 3:03 am Post subject: how to use a throw node(urgent) |
|
|
Apprentice
Joined: 16 May 2002 Posts: 29 Location: chennai
|
hi guys
can anybody explain me how to use a throw node in details
thanks
srinivas |
|
Back to top |
|
 |
dkeister |
Posted: Wed Apr 21, 2004 4:51 am Post subject: |
|
|
Disciple
Joined: 25 Mar 2002 Posts: 184 Location: Purchase, New York
|
Fairly straight forward.
Here's an example:
if Environment.Variables.Ctl.ErrorFail = 'on' then
throw user exception catalog '1ORC' message 2956 values (Environment.Variables.Ctl.FeedDefId, cast(Environment.Variables.Ctl.FEED.ID as Integer), 'RC contains invalid GL Company and Parent Org.');
else
...
In this example, prior to this point an error was detected and an environment variable set.
the error code is '2956' which is in the range (2949-2999) available for users.
You can have up to 8 variables to display in the exception. In this example:
The first is an environment variable value, the second and third are strings.
I have never gotten to the point of creating a message catalog. I put '1ORC' but there is no catalog. I think you could use 'WMQIv210' just as well.
Dean |
|
Back to top |
|
 |
dkeister |
Posted: Wed Apr 21, 2004 4:53 am Post subject: |
|
|
Disciple
Joined: 25 Mar 2002 Posts: 184 Location: Purchase, New York
|
One more thing, this will operate just as any other error thrown by ESQL so you can catch it on the failure node or what ever.
Dean |
|
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
|
|
|
|