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

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 5 09:18:48 PDT 2014


On 10/5/14, 8:56 AM, Jacob Carlborg wrote:
> I would like to have as specific exception type as possible. Also a nice
> hierarchy of exception when catching a specific exception is not
> interesting. Instead of just a FileException there could be
> FileNotFoundException, PermissionDeniedExcepton and so on.

Exceptions are all about centralized error handling. How, and how often, 
would you handle FileNotFoundException differently than 
PermissionDeniedException?

Andrei


More information about the Digitalmars-d mailing list