[Zope] Catching SQL Exceptions in an external method
jq-zope@jquade.de
jq-zope@jquade.de
23 May 2000 13:12:14 +0200
"Stolker, Wim" <w.t.stolker@getronics.com> writes:
> I do not know how the exceptions are named.
> If I catch the exception with a general 'except:' statement
> it works but I cannot see the info from the exception,
sys.exc_* should work, as in
import sys
try:
raise "Blubber"
except:
print "Exception type %s" % sys.exc_type
print "Exception value %s" % sys.exc_value
--
http://www.jquade.de/
For every complex problem there is an
answer that is clear, simple, and wrong. -- H L Mencken