ACM Home Page
Please provide us with feedback. Feedback
Error handling as an aspect
Full text PdfPdf (430 KB)
Source Aspect-oriented software development; Vol. 211 archive
Proceedings of the 2nd workshop on Best practices in applying aspect-oriented software development table of contents
Vancouver, British Columbia, Canada
Article No. 1  
Year of Publication: 2007
ISBN:1-59593-662-2
Authors
Fernando Castor Filho  University of São Paulo, São Paulo, SP, Brazil
Alessandro Garcia  Lancaster University, Lancaster, UK
Cecília Mary F. Rubira  State University of Campinas, Campinas, SP, Brazil
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 12,   Downloads (12 Months): 62,   Citation Count: 4
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1229485.1229486
What is a DOI?

ABSTRACT

One of the fundamental motivations for employing exception handling in the development of robust applications is to lexically separate error handling code from the normal code so that they can be independently modified. However, experience has shown that exception handling mechanisms of mainstream programming languages fail to achieve this goal. In most systems, exception handling code is interwined with the normal code, hindering maintenance and reuse. Moreover, because of limitations in the exception handling mechanisms of most mainstream programming languages, error handling code is often duplicated across several different places within a system. In this paper we present a pattern, Error Handling Aspect, which leverages aspect-oriented programming in order to enhance the separation between error handling code and normal code. The basic idea of the pattern is to use advice to implement exception handlers and pointcuts to associate advice to different parts of the normal code in order to improve the maintainability of the normal code and promote reuse of error handling code.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
Thiago Tonelli Bartolomei. On modularity assessment of aspect-oriented software. Master's thesis, Kiel University of Applied Sciences, Kiel, Germany, October 2006.
3
 
4
F. Castor Filho, A. Garcia, and C. M. F. Rubira. The Error Handling Aspect pattern, 2007. Submitted to the 6th Latin-American Conference on Pattern Languages of Programs (SugarloafPLoP'06).
 
5
C. Chavez. A Model-Driven Approach for Aspect-Oriented Design. PhD thesis, Pontifíficia Universidade Católica do Rio de Janeiro, Rio de Janeiro, Brazil, April 2004.
6
 
7
F. Cristian. Exception handling. In Dependability of Resilient Computers. BSP Professional Books, 1989.
 
8
 
9
F. Diotalevi. Contract enforcement with aop, July 2004. IBM Developer Works - http://www-128.ibm.com/developerworks/library/j-ceaop/.
 
10
R. Filman and D. Friedman. Aspect-oriented programming is quantification and obliviousness. In Proceedings of the Workshop on Advanced Separation of Concerns, OOPSLA '2000, October 2000.
 
11
 
12
13
 
14
R. Laddad. AspectJ in Action. Manning, 2003.
15
16
 
17
 
18
B. Randell and J. Xu. The evolution of the recovery block concept. In Software Fault Tolerance, chapter 1, pages 1--21. John Wiley Sons Ltd., 1995.
19
20
21


Collaborative Colleagues:
Fernando Castor Filho: colleagues
Alessandro Garcia: colleagues
Cecília Mary F. Rubira: colleagues