Design & Implementation Notes
CSE681 - Software Modeling & Analysis

Note #4 - Robustness

Validate user input and directory specifications:

Conclusions:

Programs are robust, not because they never encounter errors, but because they implement processing for validation and error handling.
  1. Always validate user input and provide help for the user to correctly supply input.
  2. Validate directory and file operations by wrapping stream operations in a try block. Consider rethrowing meaningful exception messages when errors occur.