AspectW: an Aspect-Oriented Catch and Retry

碩士 === 國立政治大學 === 資訊科學學系 === 102 === Most modern programming languages support try-and-catch mechanism that enables developers to write modular exception handling code which can not only process exceptions immediately but also propagate them to the other modules in the system. However, many exceptio...

Full description

Bibliographic Details
Main Authors: Kao, Pei Gogn, 高沛功
Other Authors: Chen, Kung
Format: Others
Language:zh-TW
Online Access:http://ndltd.ncl.edu.tw/handle/09137267190736901629
Description
Summary:碩士 === 國立政治大學 === 資訊科學學系 === 102 === Most modern programming languages support try-and-catch mechanism that enables developers to write modular exception handling code which can not only process exceptions immediately but also propagate them to the other modules in the system. However, many exceptions are transient, when occurred, the application is likely to recover from the exception, thereby rendering it unnecessary to start up the exception handling code. For example: during a network connection in a distributed system, you may fail due to network instability moment, suffice to wait for a few seconds and then re-connect it. Thus, some scholars initiate to expand the exception handling mechanism, and proposed catch-and-retry mechanism. This thesis takes an aspect-oriented point of view, and adapts the AspectF library to implement a lightweight level catch-and-retry library, AspectW, so that developers can use the “fluent interface” approach to easily write exceptions capture and retry code. As a result, developers do not have to modify the main logic code and could simply add catch-and-retry code to handle exceptions well.