[Python-Dev] Exception masking/chaining

Walter Dörwald walter@livinglogic.de
Thu, 12 Jun 2003 14:51:34 +0200


Walter Dörwald wrote:

> Barry Warsaw wrote:
> 
>> On Thu, 2003-06-12 at 06:44, Walter Dörwald wrote:
>>
>>> 5. Implement exception chaining (as an attribute named cause on
>>>    the outer exception referencing the inner exception).
>>
>> I'm not keen on the name "cause" for the start of the exception chain.
>> I'm not sure I have a better suggestion.  Maybe "antecedent"? ;/
> 
> "reason"?

Ouch, this will collide with the PEP 293 exceptions, that already
have an attribute reason.

Bye,
    Walter Dörwald