[Zope-CMF] Re: [dev] some questions regarding Exceptions

Dieter Maurer dieter at handshake.de
Fri Sep 19 14:19:02 EDT 2003


Yuppie wrote at 2003-9-19 12:39 +0200:
 > Dieter Maurer wrote:
 > > Yuppie wrote at 2003-9-18 12:56 +0200:
 > >  > ConflictError is derived from StandardError! "except StandardError" 
 > >  > isn't saver than a bare except.
 > > 
 > > There has been a discussion that this should be changed.
 > > Just to be make it easy to catch errors without catching
 > > exceptions which are not errors.
 > 
 > Are you talking about this thread?
 > <http://mail.zope.org/pipermail/zope3-dev/2002-November/thread.html#3428>

This is unlikely because I do not read zope3-dev
and it was much more recent then November 2002.

Unfortunatly, I deleted the message after reading.

I think to remember that Tres participated in the discussion.
Maybe, he can tell something about it.

 > ...
 > > Have a small set of exception base classes that distinquish
 > > the various kinds of exceptions: Errors, Problems (such
 > > as "ConflictError"), Warnings, ...
 > 
 > Sounds reasonable, but is CMF the place to start? What happens if Zope 
 > Core people choose a different solution, e.g. a ZopeError derived from 
 > Exception?

Maybe, Tres can provide some direction...
He takes part in CMF, Zope and Zope3.

 > If we subclass from Exception, we can later switch to StandardError or 
 > ZopeError without any backwards compatibility problems. Subclassing from 
 > StandardError now, we are bound to that because people start using it.

I see...


Dieter



More information about the Zope-CMF mailing list