SysInfoLogEnumerator infoLogEnum;
SysInfologMessageStruct infoMessageStruct;
str errorStr, errorTxt;
......
catch (Exception::Error)
{
throwError = true;
// _callbackContact.parmSalesIdList(strFmt('Error : %1', AifUtil::getClrErrorMessage()));
// Info(strfmt('%1',AifUtil::getClrErrorMessage()));
errorStr = 'Exception::Error';
infoLogEnum = SysInfoLogEnumerator::newData(infolog.infologData());
while(infoLogEnum.moveNext())
{
infoMessageStruct = SysInfologMessageStruct::construct(infoLogEnum.currentMessage());
errorTxt += '\n' + infoMessageStruct.message();
}
errorStr = errorStr + '\n' + errorTxt;
DGS_Common::insertDGSAPIServicesLogTable(APIServices,errorStr, orderNoStr);
infolog.clear();
// resultSet.addEnd(_callbackContact);
continue;
}
catch(Exception::CLRError)
{
System.Exception ex = ClrInterop::getLastException();
errorStr = strFmt('Exception::CLRError');
if (ex != null)
{
ex = ex.get_InnerException();
if (ex != null)
{
errorTxt = ex.get_Message();
errorStr = strFmt('%1 : %2 ', errorStr, errorTxt);
}
}
else
{
errorTxt = ex.get_Message();
errorStr = strFmt('%1 : %2 ', errorStr, errorTxt);
}
// error(errorStr);
DGS_Common::insertDGSAPIServicesLogTable(APIServices,errorStr, orderNoStr);
}
catch
{
errorStr = 'Exception – error in importing sales order!';
// error(errorStr);
DGS_Common::insertDGSAPIServicesLogTable(APIServices,errorStr, orderNoStr);
}
留言列表