[Zope3-dev] Please, no bare 'except:' clauses!

Casey Duncan casey@zope.com
Mon, 11 Nov 2002 09:35:17 -0500


On Monday 11 November 2002 08:26 am, Steve Alexander wrote:
> > try:
> >=20
> > except DatabaseError: # All ZODB/transactional errors (conflicts,
> > etc)
> >=20
> > except ZopeError: # All Zope framework exceptions
> >=20
> > except AppError: # All application defined exceptions
> >=20
> > except Exception: # All Python exceptions
> >=20
> > Probably the only one that would not subclass Exception would be=20
> > DatabaseError,=20
>=20
> Are you sure that's right?
>=20
> In Zope 3, we seem to have
>=20
>    Exception <- StandardError <- TransactionError <- ConflictError

I wasn't saying that the above was the way it is implemented now. Just an=
 idea=20
for how it could be.

-Casey