132.嵌套调用中意外处理的基本结构
|
|
- method1 {
- try {
- } catch (Exception3 e) {
- }
- }
- method2 throws Exception3 {
- call method3; // method2 just passes exception through
- }
- method3 throws Exception3 {
- call dividebyzeroorreadfileorsomething; // create exception
}
Copyright: NPACT |
|