Exception Handling
- slide 7 : 30
How are errors handled?
How should a run-time error be handled?
Ignore
False alarm - Naive
Report
Write a message on the screen or in a log - Helpful for subsequent correction of the source program
Terminate
Stop the program execution in a controlled an gentle way - Save data, close connections
Repair
Recover from the error in the running program - Continue normal program execution when the problem is solved