|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MbUserException in custom java node |
« View previous topic :: View next topic » |
Author |
Message
|
prasadpav |
Posted: Tue Oct 18, 2005 7:42 am Post subject: MbUserException in custom java node |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi,
I'm trying to throw user exception using MbUserException within custom java node. I want to specify user exception number "2949", just like what we mention in ESQL THROW statement. Can anyone provide any example using MbUserException or MbException to throw specific exception number?
Quote: |
THROW USER EXCEPTION MESSAGE 2949 VALUES('Some Error Text', ERROR_CODE, SQL_STATEMENT, SQLCODE, SQLERRORTEXT, SQLSTATE,SQLNATIVEERROR); |
Currently i'm using this:
Quote: |
throw new MbUserException("MyClassName", "functionName()","WMQIv50","2949","Exception raised in java node", new String [] { e.toString()} |
When I capture the trace output of the exception list generated, User Exception 4367 is throwed. And all the arguments in MbUserException are concatened and represented as a text string.
Thanks,
Prasad |
|
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
|
|
|
|