Fault tolerance and exception handling in BETA

  • Authors:
  • Jørgen Lindskov Knudsen

  • Affiliations:
  • Computer Science Department, Aarhus University, Aabogade 34, DK-8200 Aarhus C, Denmark

  • Venue:
  • Advances in exception handling techniques
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper describes the fault tolerance and exception handling mechanisms in the object-oriented programming language BETA. Exception handling in BETA is based on both a static and dynamic approach to exception handling in contrast to most other languages only supporting a dynamic approach.The BETA approach to static exception handling is based on a static termination model. Exceptions and their handlers may be defined both on the program, class, method, and instruction level, and default handlers for exceptions are defined as part of the definition of the ordinary handler. Exception propagation is under the control of the programmer.The BETA approach to dynamic exception handling is similar to other traditional dynamic exception handling models. Exception handlers are associated with blocks in the code, and in the case of an exception occurrence, the dynamic call-chain is scanned to find the dynamically nearest block with a handler matching the exception occurrence.