[Checkins] SVN: zope.publisher/trunk/ Add handy DoNotReRaiseException adapter that can be simply registered for exceptions to mark that they should not be re-raised.

Dan Korostelev nadako at gmail.com
Tue Sep 15 07:40:13 EDT 2009


2009/9/15 Christian Theune <ct at gocept.com>
> On 09/09/2009 11:58 AM, Dan Korostelev wrote:
> > Log message for revision 103682:
> >   Add handy DoNotReRaiseException adapter that can be simply registered for exceptions to mark that they should not be re-raised.
> >   Add __call__ method to the IReRaiseException interface.
>
> Hmm. How about a different interface:
>
> class IExceptionPublisherInfo(Interface):
>
>   reraise = zope.interface.Attribute("Boolean indicating whether the
> publisher should reraise the exception or not")
>
> This would also allow exceptions to implement this interface directly
> and have an attribute introspectable by the publisher.
>

That looks saner to me, plus we could add more publisher-related
information as well. However, IIRC, the IReRaiseException thing was
introduced by Uli Fouquet, so I guess, we should bug him, not me ;-)

--
WBR, Dan Korostelev


More information about the checkins mailing list