3 ms·
It depends on the context. Just because you can't continue writing to a file that was open, doesn't mean the program should crash. For example, in a user-facin
by wtetzner 7y ago
It depends on the context. Just because you can't continue writing to a file that was open, doesn't mean the program should crash.
For example, in a user-facing desktop application, maybe you just catch the exception in a high-level place, log the error, report it to the user, and explain that the action they just attempted failed. They can then try again, without having to restart the entire application.