(2013/04/28 7:59), Charles Oliver Nutter wrote:
>> > (2) How about to use `$!' forcibly?
> Do you mean automatically stick $! into Exception#cause when creating
> (or perhaps better, when raising) a new Exception? That's not a bad
> idea.

Yes.

> I think for purposes of this feature, adding cause, which can be
> initialized during construction only, would be sufficient. I have no
> strong opinion about automatically using $! as the cause, but it might
> be nice.

Cool.

Summary:
(1) raise method captures $! as @cause.
(2) Adding new method Exception#cause returns @cause.

* I'm not sure #cause is good name.
  Too short?

-- 
// SASADA Koichi at atdot dot net