摘要
传统语言编程往往通过预判是否出现了异常,但这种错误处理机制会导致不少问题。为了加强程序的健壮性、流畅性,必须考虑到可能发生的异常事件并做出相应的处理。本文借助典型的面向对象程序设计语言JAVA,来介绍一种新型的的异常处理机制。
In traditional programming, we usually Judge whether there was abnormal via predict, but the error- handling mechanism will lead to many problems. In order to strengthen the program robustness, fluency, we must take into account the unusual event that may occur and make the appropriate treatment. In this paper, we will introduce a new type of exception handling mechanism with a typical object - oriented programming language JAVA.
出处
《西安铁路职业技术学院学报》
2009年第3期33-35,共3页
Journal of Xi’an Railway Vocational & Technical Institute
关键词
异常
事件
异常处理机制
abnormal
unusual
Exception Handling