Basic Structure of Exception Handling in Nested Calls
- method1 {
- try {
- call method2;
- } catch (Exception3 e) {
- doErrorProcessing(e);
- }
- }
- method2 throws Exception3 {
- call method3; // method2 just passes exception through
- }
- method3 throws Exception3 {
- call dividebyzeroorreadfileorsomething; // create exception
- }