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 » How to throw an exception with severity error in the ev.log?

Post new topic  Reply to topic
 How to throw an exception with severity error in the ev.log? « View previous topic :: View next topic » 
Author Message
m.schneider
PostPosted: Mon Jul 09, 2007 6:51 am    Post subject: How to throw an exception with severity error in the ev.log? Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

Hi,

I'm trying to throw an exception that appears as error in the event-log.

This code appears as a informational entry:
THROW USER EXCEPTION SEVERITY 1 MESSAGE 2950 VALUES('The SQL State' , SQLState1 , SQLCode1 , SQLNativeError1 , SQLErrorText1);

And if a change it to:
THROW USER EXCEPTION SEVERITY 3 MESSAGE 2950 VALUES('The SQL State' , SQLState1 , SQLCode1 , SQLNativeError1 , SQLErrorText1);

I receive an error.

How can I use the build in catalog to throw errors? Do I have to pick a special number of the supplied user messages?(2951 - 2999)

Thanks for your help.
Back to top
View user's profile Send private message
wbi_telecom
PostPosted: Mon Jul 09, 2007 7:06 am    Post subject: Reply with quote

Disciple

Joined: 15 Feb 2006
Posts: 188
Location: Harrisburg, PA

As per the infocenter you should not receive an error as long as severity contains any expression that returns a non-NULL, integer value. What is the error you are getting?

Cheers,
Back to top
View user's profile Send private message
m.schneider
PostPosted: Mon Jul 09, 2007 7:27 am    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

( TMBROKER.EXEGRP1 ) ('.store_msg.storeMsg', '17.4') Bei Ausführung der SQL-Anweisung ''THROW EXCEPTION SEVERITY 2 MESSAGE 2951 VALUES( 'The SQL State', SQLState1, SQLCode1, SQLNativeError1, SQLErrorText1);'' wurde ein Fehler festgestellt.


An error occured during the execution of THROW, ...
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 » How to throw an exception with severity error in the ev.log?
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.