Just as the structure of the normal operations of a system tends to degrade as the system evolves, the structure of exception handling also degrades. In this paper, we draw on our experience building and analyzing the exception structure of Java programs to describe why and how exception structure degrades. Fortunately, we need not let our exception structure languish. We also relate our experience at regaining control of exception structure in several existing programs using a technique based on software containment.
Cited By
- Weiss C, Rubio-González C and Liblit B Database-backed program analysis for scalable error propagation Proceedings of the 37th International Conference on Software Engineering - Volume 1, (586-597)
- Buse R and Weimer W Automatic documentation inference for exceptions Proceedings of the 2008 international symposium on Software testing and analysis, (273-282)
- Wolf T (2001). On exceptions as first-class objects in Ada 95, ACM SIGAda Ada Letters, XXI:3, (35-40), Online publication date: 1-Sep-2001.
Recommendations
Efficient Java exception handling in just-in-time compilation
Research ArticlesJava uses exceptions to provide elegant error handling capabilities during program execution. However, the presence of exception handlers complicates the job of the just-in-time (JIT) compiler, while exceptions are rarely used in most programs. This ...
Exception Handling during Asynchronous Method Invocation (Research Note)
Euro-Par '02: Proceedings of the 8th International Euro-Par Conference on Parallel ProcessingException handling mechanisms provided by sequential programming languages rely upon the call stack for the propagation of exceptions. Unfortunately, this is inadequate for handling exceptions thrown from asynchronously invoked methods. For instance, ...