© 2004 by British Computer Society
The Green Language Exception System
Departamento de Computação, UFSCar, São Carlos, SP 13565-905, Brazil
Exception systems have become popular because they uncouple error detection and handling thus allowing us to produce better software. However, the exception handling systems of many object-oriented languages benefit very little from object-oriented programming. The catch clauses following a try block are isolated pieces of code: they do not belong to classes and cannot be reused. This paper presents the object-oriented exception system of the Green language, which fully uses the object-oriented programming features. These include the use of classes, types and subtyping, objects and inheritance. The result is a powerful exception system completely integrated with the language.
Received 12 June 2003. Revised 9 December 2003.