Delphi学习之Raise(抛出异常)

来源:互联网 发布:linux 内核启动顺序 编辑:程序博客网 时间:2024/04/30 01:29

Raise是用来抛出异常的!

constructor TBaseFactory.Create(const IID: TGUID);begin  if FactoryManager.Exists(IID) then    Raise Exception.CreateFmt(Err_IntfExists,[GUIDToString(IID)]);  FIntfGUID:=IID;  FactoryManager.RegisterFactory(Self);end;


原创粉丝点击