Bound exceptions in object-oriented programming

  • Authors:
  • Peter A. Buhr;Roy Krischer

  • Affiliations:
  • Waterloo, Ontario, Canada;Waterloo, Ontario, Canada

  • Venue:
  • Advanced Topics in Exception Handling Techniques
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many modern object-oriented languages do not incorporate exception handling into the object model. Specifically, no provision is made to involve the object responsible for raising an exception in the catching mechanism. Thus, discrimination among multiple objects raising the same exception is difficult. The notion of a bound exception is introduced to associate a responsible object with an exception during propagation and allow the catch clause to match on both the responsible object and exception. Multiple strategies for determining the responsible object are presented, along with extending bound exceptions to nonlocal propagation among coroutines/tasks.