Collateral Exceptions, Throwable vs Exception

Andrei Alexandrescu SeeWebsiteForEmail at
Thu Aug 19 13:38:24 PDT 2010

On 08/19/2010 03:18 PM, Andrej Mitrovic wrote:
> That goes against the statement in TDPL that user code should never
> catch Throwable's, unless absolutely necessary. So in case of collateral
> exceptions, we are forced to catch Throwable anyway?

Indirectly, yes (I'm not positive about this detail though): if an 
Exception is in flight but a Throwable was produced as collateral 
damage, the Throwable won't disobey normal scoping rules etc. so it 
won't be "special" anymore.


More information about the Digitalmars-d mailing list