Program logic bugs vs input/environmental errors (checked exceptions)

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 07:48:31 PDT 2014


On 06/10/14 15:45, Andrei Alexandrescu wrote:

> Knowledge doesn't have to be by type; just place data inside the
> exception. About the only place where multiple "catch" statements are
> used to make fine distinctions between exception types is in sample code
> showing how to use multiple "catch" statements :o). This whole notion
> that different exceptions need different types is as far as I can tell a
> red herring.

What do you suggest, error codes? I consider that an ugly hack.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list