ConvertOperationResult错误信息解析原创
85次浏览
未经作者许可,禁止转载编辑于2024年07月17日 17:31:45
// 调用下推引擎,下推目标单
ConvertOperationResult pushResult = ConvertServiceHelper.pushAndSave(pushArgs);
// 判断下推是否成功,如果失败,提炼失败消息输出
if (!pushResult.isSuccess()) {
// 错误摘要
String msg = pushResult.getMessage() + ":详细错误信息:";
List<SourceBillReport> bills = pushResult.getBillReports();
for(SourceBillReport bill : bills){
msg = msg + bill.getFailMessage() + "、";
}
logger.error(puff + "保存失败:" + msg);
throw new KDBizException(ResManager.loadKDString("下推失败:", "SchemeEngineService_1", "node-debug-mservice_test") + msg);
}
ConvertOperationResult pushResult = ConvertServiceHelper.pushAndSave(pushArgs);
// 判断下推是否成功,如果失败,提炼失败消息输出
if (!pushResult.isSuccess()) {
// 错误摘要
String msg = pushResult.getMessage() + ":详细错误信息:";
List<SourceBillReport> bills = pushResult.getBillReports();
for(SourceBillReport bill : bills){
msg = msg + bill.getFailMessage() + "、";
}
logger.error(puff + "保存失败:" + msg);
throw new KDBizException(ResManager.loadKDString("下推失败:", "SchemeEngineService_1", "node-debug-mservice_test") + msg);
}
推荐阅读