[Zope-dev] Redesign suggestion for IReRaiseException
Christian Theune
ct at gocept.com
Fri Sep 18 01:41:33 EDT 2009
On 09/17/2009 10:49 PM, Martijn Faassen wrote:
> Hey,
>
> Christian Theune wrote:
>
>>> This would be an interface on exceptions, right? Would it try to adapt
>>> exceptions raised to IPublisherExceptionInfo and if successful look at
>>> this attribute? So an exception can either implement this interface
>>> directly, or you could register an adapter for exceptions?
>>
>> Yes, I'd say it would perform an adaptation using
>> `IPublishExceptionInfo(exc)` so it can either implement it directly or
>> adapt.
>
> And if the adapter is not available, it'll just do the default, correct?
Yes. Which would be whatever it has been doing for the last years ...
--
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
More information about the Zope-Dev
mailing list