Error Handling issues ... continued from earlier post

ERROR PREVENTION
  • Inadequate initial state validation
  • Inadequate tests of user input
  • Inadequate protection against corrupted data
  • Inadequate tests of passed parameters
  • Inadequate protection against operating system bugs
  • Inadequate version control
  • Inadequate protection against malicious use
ERROR DETECTION
  • Ignores overflow
  • Ignores impossible values
  • Ignores implausible values
  • Ignores error flag
  • Ignores hardware fault or error conditions
  • Data comparisons
ERROR RECOVERY
  • Automatic error correction
  • Failure to report an error
  • Failure to set an error flag
  • Where does the program go back to?
  • Aborting errors
  • Recovery from hardware problems
  • No escape from missing disk