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

Reply via email to