[Zope-DB] DA's violating transactional assertions

Dieter Maurer dieter@handshake.de
Fri, 24 Jan 2003 20:31:59 +0100


M.-A. Lemburg wrote at 2003-1-24 10:39 +0100:
 > ...
 > > DA's should handle transient exceptions not by retrying the
 > > the query themselves but by raising a (special) exception
 > > derived from "ConflictError" after they closed and reopened the
 > > connection.
 > > This will cause Zope to abort its transaction and then
 > > retry its complete transaction again.
 > 
 > This would be much safer, yes. Is there such an exception
 > or would using a subclass of ConflictError suffice ?
Any subclass of "ConflictError" causes Zope to retry the request.


Dieter