首页> 外文期刊>Computer Languages, Systems & Structures >A transactional model for automatic exception handling
【24h】

A transactional model for automatic exception handling

机译:用于自动异常处理的事务模型

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

摘要

Software reliability and error handling are concepts that any programmer knows and deals with on a daily basis. Even so, studies suggest that the current approach to exception handling raises fundamental incompatibilities with object-oriented concepts, being a major cause for the lack of quality on error handling code. In this paper, we propose an exception handling model that makes the runtime environment responsible for automatically dealing with abnormal situations. The platform provides a number of benign recovery actions that are able to deal automatically with most common exception types. Whenever an exception is raised, and a benign recovery method can be found, code is re-executed from a clean transactional state. In this approach try blocks not only represent a nesting level where a fault can occur but also a block that can be re-executed transactionally as a clean slate. For validating the approach two case studies were performed. One involved providing automatic exception handling for Glassfish's Java Messaging System implementation and the other for the Hipergate CRM application. Both showed that increased robustness is possible while freeing the programmer from manually writing extensive error-handling code.
机译:软件可靠性和错误处理是任何程序员每天都知道并处理的概念。即便如此,研究表明,当前的异常处理方法仍与面向对象的概念产生了根本的不兼容,这是导致错误处理代码缺乏质量的主要原因。在本文中,我们提出了一个异常处理模型,该模型使运行时环境负责自动处理异常情况。该平台提供了许多良性恢复操作,这些操作可以自动处理最常见的异常类型。只要引发异常,并且可以找到良性恢复方法,就会从干净的事务状态重新执行代码。在这种方法中,try块不仅代表可能发生故障的嵌套级别,而且还可以作为干净的对象以事务方式重新执行。为了验证该方法,进行了两个案例研究。一项涉及为Glassfish的Java消息系统实现提供自动异常处理,另一项涉及为Hipergate CRM应用程序提供自动异常处理。两者都表明,在使程序员免于手动编写大量错误处理代码的同时,可以提高鲁棒性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号