From 5c522ea1b67172945a4be505021b8c91636c9774 Mon Sep 17 00:00:00 2001 From: jamikxu Date: Thu, 28 Oct 2021 11:31:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=87=E6=A0=87=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BC=98=E5=8C=96=20#5326?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops/quality/service/v2/QualityRuleBuildHisService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}]") }