首页> 外文会议>ECOOP'88, European conference on object-oriented programming >An Object-oriented Exception Handling System for an Object-oriented Language
【24h】

An Object-oriented Exception Handling System for an Object-oriented Language

机译:面向对象语言的面向对象异常处理系统

获取原文
获取原文并翻译 | 示例

摘要

We present an original exception handling system especially designed for object-oriented languages, making actual information hiding possible and taking into account specific issues of object-oriented languages. It allows association of handlers with expressions as well as with object classes, using a well denned semantics. It offers an object-oriented and extensible representation of exceptions, handlers and knowledge about exceptions. Handlers can specify both resumption and termination. There are no distinctions between system and user denned exceptions. With this system, fault tolerant programs and well specified encapsulations can be written, simple and powerful integration of new user-defined exceptions and secure as well as readable non local moves can be implemented. In this paper, we examine object oriented specific issues related to exception handling. We discuss the exception handling mechanisms available in current object-oriented languages and explain why they do not provide the ability to define fault tolerant encapsulations. Our system description shows how the utilization of the object-oriented formalism solves, in an efficient and simple way, some well known problems related to exception handling such as : how to create exception hierarchies, how to signal fatal or continuable exceptions with the same primitive, how to pass arguments to handlers, and so on.
机译:我们提出了一个原始的异常处理系统,该系统专门为面向对象的语言设计,可以隐藏实际信息,并考虑到面向对象语言的特定问题。它允许使用定义明确的语义将处理程序与表达式以及对象类相关联。它提供了异常,处理程序和有关异常的知识的面向对象的可扩展表示形式。处理程序可以指定恢复和终止。系统和用户拒绝的异常之间没有区别。使用此系统,可以编写容错程序和指定的封装,可以对新的用户定义的异常进行简单而强大的集成,并且可以实现安全以及可读的非本地移动。在本文中,我们研究了与异常处理相关的面向对象的特定问题。我们讨论了当前面向对象语言中可用的异常处理机制,并解释了为什么它们不提供定义容错封装的能力。我们的系统描述显示了如何利用面向对象的形式主义以有效且简单的方式解决与异常处理相关的一些众所周知的问题,例如:如何创建异常层次结构,如何用相同的原语发出致命或可延续的异常信号,如何将参数传递给处理程序等等。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号