aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main
diff options
context:
space:
mode:
authorseanbeirne <sean.beirne@est.tech>2024-11-25 12:03:25 +0000
committerseanbeirne <sean.beirne@est.tech>2024-11-25 14:03:59 +0000
commitac855f748ff6a63b32686596032da4a4a8c28c6a (patch)
tree59a84b1cf21e3fc6f4049cd91e021a1d4ab78944 /cps-ncmp-service/src/main
parentfd5b04c51451cb0525d7ed93b1bb9b53573f6aaa (diff)
Catch data validation exception in dmi data operation
Issue-ID: CPS-2510 Change-Id: I4093459c824c202dc8dec4b869e338d4b80fbac8 Signed-off-by: seanbeirne <sean.beirne@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/main')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/DmiDataOperations.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/DmiDataOperations.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/DmiDataOperations.java
index 41348aea3f..1e66ff6cd2 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/DmiDataOperations.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/data/DmiDataOperations.java
@@ -52,7 +52,7 @@ import org.onap.cps.ncmp.impl.models.DmiRequestBody;
import org.onap.cps.ncmp.impl.utils.http.RestServiceUrlTemplateBuilder;
import org.onap.cps.ncmp.impl.utils.http.UrlTemplateParameters;
import org.onap.cps.spi.exceptions.CpsException;
-import org.onap.cps.spi.exceptions.DataNodeNotFoundException;
+import org.onap.cps.spi.exceptions.DataValidationException;
import org.onap.cps.utils.JsonObjectMapper;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
@@ -285,7 +285,7 @@ public class DmiDataOperations {
String cmHandleId = cmResourceAddress.getCmHandleReference();
try {
return getYangModelCmHandle(cmHandleId);
- } catch (final DataNodeNotFoundException ignored) {
+ } catch (final DataValidationException ignored) {
cmHandleId = cmResourceAddress.resolveCmHandleReferenceToId();
return getYangModelCmHandle(cmHandleId);
}