previous |
start |
next
A Complete Example
- Program
-
- reads coin descriptions from file
- adds coins to purse
- prints total
- What can go wrong?
-
- File might not exist
- File might have data in wrong format
- Who can detect the faults?
-
- main method of PurseTest interacts with
user
- main method can report errors
- Other methods pass exceptions to caller
previous |
start |
next