delphi线程异常处理_在Delphi应用程序中处理错误和异常

delphi线程异常处理

Unfortunately, building applications includes coding. Regardless of how carefully you write/debug your program, it will be impossible to imagine every situation that can go wrong. The inexperienced user might, for example, try to open a nonexisting file or input a bad value into a data field.Users make mistakes and we should be prepared to handle/prevent these errors wherever and whenever possible.

不幸的是,构建应用程序包括编码。 无论您多么认真地编写/调试程序,都无法想象每种情况都可能出错。 经验不足的用户可能会尝试打开一个不存在的文件或在数据字段中输入错误的值。用户会犯错,因此,我们应该随时随地准备/处理这些错误。

错误,异常? ( Errors, Exceptions? )

An exception is generally an error condition or another event that interrupts the normal flow of execution in an application. Whenever an error results from processing a line of code, Delphi creates (raises) an object descendant from TObject called the exception object.

异常通常是错误条件或其他事件,会中断应用程序中的正常执行流程。 每当处理一行代码而导致错误时,Delphi都会从TObject创建(引发)一个称为异常对象的对象后代。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值