DATA-ORIENTED EXCEPTION HANDLING

被引:11
作者
CUI, Q [1 ]
GANNON, J [1 ]
机构
[1] UNIV MARYLAND,DEPT COMP SCI,COLLEGE PK,MD 20742
关键词
EXCEPTION HANDLING; PROGRAMMING LANGUAGES; ADA; SOFTWARE RELIABILITY;
D O I
10.1109/32.135772
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Exception handling mechanisms were added to programming languages to segregate normal algorithmic processing from error processing. However, handlers, which are typically associated with exceptions through programs' control features, clutter source text when features are nested or when different objects require different responses to exceptions. We describe a method for associating handlers with data objects in declarations that better segregates algorithmic and error processing. We call our notation data-oriented exception handling to distinguish it from more conventional, control-oriented mechanisms. Empirical studies of Ada programs indicate that conventional exception handling mechanisms are more complex than necessary and that data-oriented exception handling can be used to produce programs that are smaller, better structured, and easier to understand and modify.
引用
收藏
页码:393 / 401
页数:9
相关论文
共 11 条
[1]  
BIDOIT M, 1984, 3RD P JOINT AD EUR A, P141
[2]  
BLACK AP, 1983, 820102 U WASH TECH R
[3]   EARLY EXPERIENCE WITH MESA [J].
GESCHKE, CM ;
MORRIS, JH ;
SATTERTHWAITE, EH .
COMMUNICATIONS OF THE ACM, 1977, 20 (08) :540-553
[4]   EXCEPTION HANDLING - ISSUES AND A PROPOSED NOTATION [J].
GOODENOUGH, JB .
COMMUNICATIONS OF THE ACM, 1975, 18 (12) :683-696
[5]  
HORNING JJ, 1979, COMPUTING SYSTEMS RE
[6]  
ICHBIAH JD, 1979, SIGPLAN NOTICES B, V14
[7]  
LEVIN R, 1977, PROGRAM STRUCTURES E
[8]   EXCEPTION HANDLING IN CLU [J].
LISKOV, BH ;
SNYDER, A .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1979, 5 (06) :546-558
[9]  
Luckham D. C., 1980, ACM Transactions on Programming Languages and Systems, V2, P225, DOI 10.1145/357094.357100
[10]  
Parnas D. L., 1976, 2nd International Conference on Software Engineering, P437