hongjli
2023-10-18 0ce2394de3db9bcccd6da6bc68cb2eedf64e5f3f
_Main/BL/Type_MacroPlan/StaticMethod_DoASyncOnException.qbl
@@ -2,12 +2,18 @@
#parent: #root
StaticMethod DoASyncOnException (
  Exception exception,
  GlobalOTDTable globalOTDTable
  GlobalOTDTable globalOTDTable,
  Key macroPlanMDSID
)
{
  TextBody:
  [*
    Global_BrokerExecuteLog::CreateInOperation( globalOTDTable, "DataDistribution", "" );
    globalOTDTable.SettingFailureDetails( exception.ErrorNumber(), exception.Message(), "DataDistribution", "数据分发" );
    options := DatasetFindOptions::Construct( "GlobalOTDLog" ).IncludeOffline( true );
    mdskey := DatasetController::FindUnique( options );
    MDSGlobalOTDLog::Root( mdskey ) -> DataDistributionLog::OnError( macroPlanMDSID,
                                                                     exception.ErrorNumber(),
                                                                     exception.Message() );
  *]
}