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 Feb 1, 2023
1 parent 6455a73 commit 6644ea9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.google.common.util.concurrent.UncheckedExecutionException;
import com.tencent.bk.job.common.constant.ErrorCode;
import com.tencent.bk.job.common.exception.InternalCmsiException;
import com.tencent.bk.job.common.exception.InternalException;
import com.tencent.bk.job.common.util.JobContextUtil;
import com.tencent.bk.job.manage.dao.notify.NotifyEsbChannelDAO;
import com.tencent.bk.job.manage.model.dto.notify.NotifyEsbChannelDTO;
Expand Down Expand Up @@ -98,12 +97,7 @@ public List<NotifyEsbChannelDTO> listNotifyEsbChannel(DSLContext dslContext) {
} catch (ExecutionException | UncheckedExecutionException e) {
String errorMsg = "Fail to load EsbChannel from cache";
logger.error(errorMsg, e);
Throwable cause = e.getCause();
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;
} else {
throw new InternalCmsiException(errorMsg, e, ErrorCode.CMSI_MSG_CHANNEL_DATA_ERROR);
}
throw new InternalCmsiException(errorMsg, e, ErrorCode.CMSI_MSG_CHANNEL_DATA_ERROR);
}
}
}

0 comments on commit 6644ea9

Please sign in to comment.