DataSetProvider1.OnUpdateError

ApplyUpdates 缓存更新错误异常

UpdateError

 EFDException

AException

void __fastcall TFrmItem::Query1UpdateError(TDataSet *ASender, EFDException *AException,
          TFDDatSRow *ARow, TFDUpdateRequest ARequest, TFDErrorAction &AAction)

{
    errmsg = E->Message;
    throw E;
}

 

void __fastcall TFrm::Query1UpdateError(TDataSet *ASender, EFDException *AException,
          TFDDatSRow *ARow, TFDUpdateRequest ARequest, TFDErrorAction &AAction)

{
dm->FDConnection1->Rollback();
    throw new Exception(  AException->Message );
}

posted on 2015-02-16 16:11  lypzxy  阅读(254)  评论(0编辑  收藏  举报