If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > RAISE EXCEPTION question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-03, 11:50
sconway sconway is offline
Registered User
 
Join Date: May 2003
Posts: 3
Question RAISE EXCEPTION question

I was hoping to use the RAISE EXCEPTION statement to define my own block of error numbers to return to calling applications. For example, using a different error number for each business rule violation applicable to our application.

It appears though informix only allows the use of -746 for this purpose. Not useful for calling application to be able to examine value and take specific action depending upon which business rule failed. They could compare the error text to string constants, however, this is ugly.

Am I missreading the Informix documents here or is this the way it is. I have attempted to use unused Informix error numbers, but, dont like this as they may use it in future (e.g. -11000). There is not a block of numbers set aside for developers.

BTW: I'm developing for IDS and SE.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On