summaryrefslogtreecommitdiffstats
path: root/participant/participant-impl/participant-impl-a1pms/src/main
diff options
context:
space:
mode:
authoraravind.est <aravindhan.a@est.tech>2022-12-06 15:42:08 +0000
committeraravind.est <aravindhan.a@est.tech>2022-12-06 16:07:19 +0000
commitccb8bb7deb86001c5d88e07a344a6fb518efba9c (patch)
tree1bbb3bfaabf7c9ca4b953fb9bdc4ec5751f355ff /participant/participant-impl/participant-impl-a1pms/src/main
parent6f3447836b04f2fbea1fa4fca526d549bec42661 (diff)
A1pms: Fix Code smells and coverage
Issue-ID: CCSDK-3816 Signed-off-by: aravind.est <aravindhan.a@est.tech> Change-Id: Ifa9a5d538d13e59ec842edee6d3cbc43a0f0df1d
Diffstat (limited to 'participant/participant-impl/participant-impl-a1pms/src/main')
-rwxr-xr-xparticipant/participant-impl/participant-impl-a1pms/src/main/java/org/onap/policy/clamp/acm/participant/a1pms/handler/AutomationCompositionElementHandler.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/participant/participant-impl/participant-impl-a1pms/src/main/java/org/onap/policy/clamp/acm/participant/a1pms/handler/AutomationCompositionElementHandler.java b/participant/participant-impl/participant-impl-a1pms/src/main/java/org/onap/policy/clamp/acm/participant/a1pms/handler/AutomationCompositionElementHandler.java
index 072d14475..9b942b961 100755
--- a/participant/participant-impl/participant-impl-a1pms/src/main/java/org/onap/policy/clamp/acm/participant/a1pms/handler/AutomationCompositionElementHandler.java
+++ b/participant/participant-impl/participant-impl-a1pms/src/main/java/org/onap/policy/clamp/acm/participant/a1pms/handler/AutomationCompositionElementHandler.java
@@ -145,12 +145,8 @@ public class AutomationCompositionElementHandler implements AutomationCompositio
LOGGER.error("Violations found in the config request parameters: {}", violations);
throw new ValidationException("Constraint violations in the config request");
}
- } catch (ValidationException | CoderException e) {
- LOGGER.error("Error invoking the A1PMS request for the config ", e);
+ } catch (ValidationException | CoderException | A1PolicyServiceException e) {
throw new A1PolicyServiceException(HttpStatus.SC_BAD_REQUEST, "Invalid Configuration", e);
- } catch (A1PolicyServiceException e) {
- LOGGER.error("Error invoking the A1PMS request for the config ", e);
- throw e;
}
}
}