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 » MbUserException in custom java node

Post new topic  Reply to topic
 MbUserException in custom java node « View previous topic :: View next topic » 
Author Message
prasadpav
PostPosted: Tue Oct 18, 2005 7:42 am    Post subject: MbUserException in custom java node Reply with quote

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
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 » MbUserException in custom java node
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.