异常处理是一种用来检测异常并时其进行处理的技术。异常处理机制已作为现代程序设计语言的一个重要的特性被广泛地采纳,以增强系统运行的可靠性,提高软件的健壮性。对异常处理在程序语言的实现进行了一般性研究,分析比较几种异常处理机制及其实现方法,提出了一种新的异常处理机制的实现方法。
Exception handling is a technique that tests and handles exception events. Exception handling mechanism is popularly accepted as an important feature of modem programming languages to increase the reliability of the system running and the robustness of the software is improved. The rule of the exception handling of the programming language is researched; by analyzing and comparing some representative exception handling mechanism and their implementation, a new method of implementing an exception handling mechanism is presented finally.