Skip to content

Commit

Permalink
bugfix: 依赖的其他系统(CMDB、IAM等)接口异常时报错信息优化 TencentBlueKing#1430
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Jan 12, 2023
1 parent fdc7f76 commit 6a3110b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ public InstanceTopologyDTO getCachedBizInstCompleteTopology(long bizId){
try {
return bizInstCompleteTopologyCache.get(bizId);
} catch (ExecutionException | UncheckedExecutionException e) {
throw new CmdbClientException(e, ErrorCode.CMDB_API_DATA_ERROR, null);
Throwable cause = e.getCause();
if (cause instanceof RuntimeException) {
throw (RuntimeException) e;
} else {
throw new CmdbClientException(e, ErrorCode.CMDB_API_DATA_ERROR, null);
}
}
}

Expand Down

0 comments on commit 6a3110b

Please sign in to comment.