diff options
author | ezhil <ezhrajam@in.ibm.com> | 2018-11-30 16:36:45 +0530 |
---|---|---|
committer | ezhil <ezhrajam@in.ibm.com> | 2018-11-30 16:38:17 +0530 |
commit | 3c60cc769925755f779efad571a6e0afb6d2a94a (patch) | |
tree | f58f9dec2d72b74064d58d67b94a72c8d22db59c | |
parent | 99b797bba200f9d91a8f6224697e9a18132b3dbd (diff) |
Fixed sonar issues in PolicyManagerClient.java
Logged exceptions using Logger
Issue-ID: CCSDK-769
Change-Id: Id2f9c5c11fd76e10598e8dfc23c4d115a102ff10
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
-rw-r--r-- | ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java b/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java index 2378584e..f312cc36 100644 --- a/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java +++ b/ms/vlantag-api/src/main/java/org/onap/ccsdk/apps/ms/vlantagapi/extinf/pm/PolicyManagerClient.java @@ -93,6 +93,7 @@ public class PolicyManagerClient { result = response.getBody();
} catch (RestClientException rce) {
+ log.error(rce.getMessage());
throw new VlantagApiException(rce.getLocalizedMessage());
}
return result;
@@ -118,6 +119,7 @@ public class PolicyManagerClient { requestObject.setPolicyName(policyName);
retVal = extractResourceModelsFromResponse(getConfigUsingPost(requestObject));
} catch (IOException e) {
+ log.error(e.getMessage());
throw new VlantagApiException(e);
}
return retVal;
|