[Issue 13543] std.file.FileException has useless __FILE__ and __LINE__ arguments tacked on

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 27 16:28:34 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13543

--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
To put things more clearly, Exceptions are for:

1. so code can recover cleanly from input/environmental errors
2. if (1) is not possible, report the error to the app user in a manner that is
sensible to the app user


They are NOT for:

1. so the code can recover from internal programming bugs
2. reporting internal programming bugs to the app user

--


More information about the Digitalmars-d-bugs mailing list