The Right Approach to Exceptions

Vincent thornik at
Tue Feb 21 02:40:57 PST 2012

On Saturday, 18 February 2012 at 18:52:05 UTC, Andrei 
Alexandrescu wrote:
> From experience I humbly submit that catching by type is most 
> of the time useless.

Completely disagree. Types allow to control place for "catch". 
Say, some deeply nested function catches its own exceptions, 
while outer function catches the rest - exceptions higher in 
hierarchy. But to have benefit you have to create exceptions 
hierarchy - this is the main point.

More information about the Digitalmars-d mailing list