+ -
当前位置:首页 → 问答吧 → 关于delphi中异常的问题

关于delphi中异常的问题

时间:2011-08-26

来源:互联网

delphi 中可以用try catch end; 以及try fially end; 来处理异常,VC++中是用tyr catch end;来处理异常,因为catch后面还会带参数,请教一下转换为delphi后应该是怎样的呢?
比如:
  if( id != H5S_ALL ) {
  try {
  close()
  }
  catch (Exception close_error) {
  throw DataSpaceIException("DataSpace::copy", close_error.getDetailMsg());
  }

作者: jilaoyun   发布时间: 2011-08-26

try

except on e:exception do
begin
end;
end;

作者: funxu   发布时间: 2011-08-26

热门下载

更多