Hacker News new | ask | show | jobs
by the_mitsuhiko 4332 days ago
> If you don't want the older exception, why are you giving it to the constructor of the new exception?

Exceptions are chained automatically through the stracktrace and not because they are passed to the constructor. By raising an exception from an exception handler you automatically chain them.