本文整理自网络,侵删。
//例1:
begin
raise Exception.Create('抛出异常');
end;//例2:
begin
raise Exception.CreateFmt('%s %d', ['错误代码:', 999]);
end;//例3:
var
exc: Exception;
begin
exc := Exception.Create('发现异常');
raise exc;
end;
相关阅读 >>
Delphi getprocesshandleasname 获取进程句柄
Delphi用idhttp.get访问一个网址返回403错误,但用ie浏览器访问正常
Delphi环境下基于spcomm控件开发串口通讯报文字节丢失的问题解决
Delphi idhttpserver实现webservice
Delphi xe6 android 界面皮肤美化 用stylebook
更多相关阅读请进入《Delphi》频道 >>