First page Back Continue Last page Graphics
13.2 Exception-Handling Overview
Consider pseudocode
- Perform a task
- If the preceding task did not execute correctly
Perform error processing
- Perform next task
- If the preceding task did not execute correctly
Perform error processing
Mixing logic and error handling
- Can make program difficult to read/debug
- Exception handling removes error correction from "main line" of program