Sonar Critical :To either Log or rethrow exception 75/26675/1
authoraishkashyap <as00476394@techmahindra.com>
Thu, 21 Dec 2017 05:03:18 +0000 (10:33 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Thu, 21 Dec 2017 05:03:56 +0000 (10:33 +0530)
To either Log or rethrow exception

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.resources%3Aresources#severities=MINOR%2CCRITICAL|assignees=aishkashyap

Location:
src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
Line No:355

Change-Id: Id2e9f0de6acb9844887e740902425be075209d6c
Issue-ID: AAI-573
Signed-off-by: aishkashyap <as00476394@techmahindra.com>
aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java

index 52fe859..8572369 100644 (file)
@@ -352,7 +352,7 @@ public class ModelVersionTransformer extends RESTAPI {
                } catch (NoSuchElementException e) {
                        throw new NoSuchElementException();
                } catch (Exception e1) { 
-                       e1.printStackTrace();
+                       LOGGER.error("Exception while getting current models from graph"+e1);
                }
                return modelVerModelMap;