Handling missing resources -


i've found myself in situation needed handle exception i'll never get, out of curiosity, let's small poll.

  1. do validate presence of resources in programs? mean, resources installed program, icons, images , similar. generally, if missing, either install didn't job, or user randomly deleted files in app.

  2. if validate presence, do when files not there?

of course, web apps, you'll have nice 404 page or broken link, rest? fail early, yes, leave handling failures compiler, or what?

in python, many folks rely on simple exception handling kind of thing. might wrap application in big-old-try-block reports "serious problems" unhandleable exceptions , tries clean , exit gracefully.

it's hardly worth checking in advance.

if it's possible user super delicate , precious part of application , app dies undoing hours (or years) of work, should rethink use case create more robust scenario crash not destructive.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -