DIP33: A standard exception hierarchy
Lars T. Kyllingstad
public at kyllingen.net
Wed Apr 3 07:23:31 PDT 2013
On Wednesday, 3 April 2013 at 14:11:09 UTC, Steven Schveighoffer
wrote:
> The problem I have with this whole scheme of one class per
> error type is, you inevitably cannot cover everyone's use case,
> so they end up having to catch a base class and then doing the
> work to figure out what it is manually.
Precisely. And then, a switch over an enum is both way more
efficient and more readable than a bunch of ifs and casts.
Lars
More information about the Digitalmars-d
mailing list