diff --git a/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityRuleBuildHisService.kt b/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityRuleBuildHisService.kt index cf672c537cd..0b638a32a00 100644 --- a/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityRuleBuildHisService.kt +++ b/src/backend/ci/core/quality/biz-quality/src/main/kotlin/com/tencent/devops/quality/service/v2/QualityRuleBuildHisService.kt @@ -28,6 +28,7 @@ package com.tencent.devops.quality.service.v2 import com.fasterxml.jackson.core.type.TypeReference +import com.tencent.devops.common.api.exception.OperationException import com.tencent.devops.common.api.exception.ErrorCodeException import com.tencent.devops.common.api.util.EnvUtils import com.tencent.devops.common.api.util.HashUtil @@ -130,7 +131,7 @@ class QualityRuleBuildHisService constructor( } } } - throw IllegalArgumentException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," + + throw OperationException("指标[${requestIndicator.enName}]值类型为[${indicator.thresholdType}]," + "请修改红线阈值[${requestIndicator.threshold}]") }