期刊文献+

异常处理与Delphi的实现方法

Exception Process and the Realizing Method of Delphi
下载PDF
导出
摘要 讨论面向对象的编程语言的异常处理与传统的错误处理方式的区别,主要表现在两个方面: 1.异常处理允许分开检测错误情况的代码和处理错误情况的代码,并且自动和无碍地联系两者;传统的错误处理方式只能靠程序员编程时进行控制; 2.异常处理能方便地改变程序的执行路径,传统的错误处理很困难。因此, Delphi、 Java等面向对象的编程语言提供了异常处理机制。并以 Delphi为例,给出了异常处理的实现机制——异常类,异常处理语句“ try… except… end”和“ try… finally… end”,异常嵌套,异常保护,引发异常等的语法规则和实例。 In this paper,we discuss the differences between the exception process of object oriented programming language and traditional error process.The differences are;first,exception process allows of checking erroneous codes and processing erroneous codes separately,and linking the two parties automatically,but the latter depends on the control of programmer,second,the former can change the executive path of program conveniently,but it is difficult for traditioonal error process to do so.Therefore,Delphi,Java and other object oriented programming languages provide exception process mechanisms.Taking Delphi as an instance,we give the realizeing mechanism of exception process—— exception,exception process sentences“ try… except… end” and“ try… finally… end” ,exception nest,exception protection,exception ignition and other grammar rules and concrete examples.
作者 傅清平
出处 《江西教育学院学报》 2000年第6期19-22,共4页 Journal of Jiangxi Institute of Education
关键词 异常处理 异常处理机制 面向对象 Delpdhdid 应用程序 程序语言 软件开发 Exception Exception process Exception process mechanism Object oriented.
  • 相关文献

参考文献2

  • 1Charlie Galvert 潇湘工作室(译).Delphi4编程技术内幕[M].北京:机械工业出版社,1999..
  • 2Kent Reisdorph 罗少双等(译).轻松掌握Delphi4[M].北京:电子工业出版社,1999..

共引文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部