Program logic bugs vs input/environmental errors (checked exceptions)
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Oct 5 20:31:01 PDT 2014
On 10/5/14, 2:27 PM, Walter Bright wrote:
> On 10/5/2014 9:18 AM, Andrei Alexandrescu wrote:
>> Exceptions are all about centralized error handling. How, and how
>> often, would
>> you handle FileNotFoundException differently than
>> PermissionDeniedException?
>
> You would handle it differently if there was extra data attached to that
> particular exception, specific to that sort of error.
Indeed. Very few in Phobos do. -- Andrei
More information about the Digitalmars-d
mailing list