[Exceptional C++ Style] Fw: Item 11: Try and Catch Me
Klitos Kyriacou
Klitos.Kyriacou at reuters.com
Wed Dec 1 09:58:07 EST 2004
Terje Slettebø wrote:
> [...]
> "File doesn't exist, is read-only, or not enough disk space."
>
> I mean, come on, you're the computer; you tell me: Doesn't it exist,
> is it read-only, or isn't there enough disk space? Am I supposed to
> guess, here?
>
> Same with:
>
> "Can't delete file because it may be in use."
>
> "May"?! Come on... You know it better than me. Could you also tell
> me _what_ is using it, so I may be able to release the file lock?
Consider yourself lucky. I once got the following message while trying to delete a file on Windows NT 4.0:
Cannot delete file: The disk is full. Please delete some files to free up some disk space, and then try the operation again.
Klitos
[ *** LongSig auto truncated *** ]
More information about the Effective-cpp
mailing list