[Zope] Error handling in zope/ ext method calling a sproc to insert data into sql db?

Dieter Maurer dieter@handshake.de
Thu, 16 Jan 2003 21:33:20 +0100


Alisa K wrote at 2003-1-15 12:13 -0800:
 > .... data entered in SQL database through stored procedure ...
 > Currently there is no error handling and all
 > submissions seem to "go through," even when the sproc
 > insert fails.
Then "sproc" does something wrong. It should raise
an exception when it fails.

Otherwise, you have little change to handle the failure.
Your "sproc" must somehow tell whether or not it failed.


Dieter