Dieter Maurer wrote:

   try: DB__=dbc()
   except:
     exc_type, exc_value, trc = sys.exc_info()
     raise DatabaseError('%s is not connected to a database' % self.id,
                         exc_type,
                         exc_value), trc


I didn't know you could re-raise a traceback like this... where's tha tsyntax documented?


Define "DatabaseError" in such a way that its "__str__" includes
information about the original exception.

This seems needlessly overcomplicated to me...


Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk


_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to