DAEH: A Tool for Specifying and Monitoring the Exception Handling Policy

Rodrigo Bonifacio de Almeida; ABRANTES, JOILSON ; COELHO, Roberta ;
International Journal of Software Engineering and Knowledge Engineering
View details:  

Abstract

The exception handling policy of a system comprises the set of design rules that specify its exception handling behavior (how exceptions should be handled and thrown). Such policy is usually undocumented and implicitly defined by the system architect. For this reason, developers often consider that by just including catch-blocks in the code they are dealing with exceptional conditions. This lack of information may turn the exception handling into a generalized “goto” mechanism making the program more complex and less reliable. This work presents a domain-specific language called ECL (Exception Contract Language) to specify the exception handling policy and a runtime monitoring tool which dynamically checks this policy. The monitoring tool is implemented in the form of an aspect library, which can be added to any Java system without the need to change the application source code. We applied this approach to two large-scale web-based systems and to a set of versions of the well-known JUnit framework. The results indicate that this approach can be used to express and to automatically check the exception handling policy of a system, and consequently support the development of more robust Java systems.

BibTex references

@article{abrantes2015daeh,
  title={DAEH: A Tool for Specifying and Monitoring the Exception Handling Policy},
  author={Abrantes, Joilson and Coelho, Roberta and Bonifacio, Rodrigo},
  journal={International Journal of Software Engineering and Knowledge Engineering},
  volume={25},
  number={09n10},
  pages={1515--1530},
  year={2015},
  publisher={World Scientific}
}

Other publications in the database