[Zope-Coders] RFC: Death to string exceptions
Casey Duncan
casey at zope.com
Tue Nov 18 09:22:18 EST 2003
On Tue, 18 Nov 2003 11:08:46 +0100
"Stefan H. Holek" <stefan at epy.co.at> wrote:
> I have always used AccessControl.Unauthorized. Am I screwed now?
AccessControl.Unauthorized is a subclass of zExceptions.Unauthorized, so you may or may not be screwed. Catching zExceptions.Unauthorized is safer since it will also catch the subclass.
Maybe these should just be aliases of each other. I have no clue what the use cases is for two separate Unauthorized exceptions. Anybody know?
-Casey
More information about the Zope-Coders
mailing list