The Right Approach to Exceptions
Manfred Nowak
svv1999 at hotmail.com
Sat Feb 18 13:19:40 PST 2012
H. S. Teoh wrote:
> If you try to open a file, FileNotFoundException should be
> recoverable, but DiskFailureException should not. You need to
> distinguish between them.
this innocent remakr shows in depth that exceptions have a meaning only
under some specific modell. For a program trying to save valuable data
from an already failing disk should have as modell, yes, some sort of
failing disc. Within this modell a failing disc is normal and not to be
seen as an exception.
-manfred
More information about the Digitalmars-d
mailing list