summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorTian Lee <TianL@amdocs.com>2017-09-21 11:33:58 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-21 11:33:58 +0000
commitc99e4332cb5805e55254985961791b574ec10f97 (patch)
tree87f77e7ee700e2ef9237bef26c7877220042c627 /src/main/java
parent4f09f3bb06e0845f28eb026a8d1ae05a5fc82ac9 (diff)
parentf707210a7b373ee03d4fba17e8461966f4497fa4 (diff)
Merge "Fix Blocker/Critical sonar issues"
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java b/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java
index 63d4e59..e3f57aa 100644
--- a/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java
+++ b/src/main/java/org/openecomp/sparky/viewandinspect/services/VisualizationService.java
@@ -347,10 +347,9 @@ public class VisualizationService {
try {
output = transformer
.generateVisualizationOutput((System.currentTimeMillis() - opStartTimeInMs), graphMeta);
- } catch (JsonProcessingException exc) {
- throw new ServletException("Caught an exception while generation visualization output", exc);
- } catch (IOException exc) {
+ } catch (Exception exc) {
LOG.error(AaiUiMsgs.FAILURE_TO_PROCESS_REQUEST, exc.getLocalizedMessage());
+ throw new ServletException("Caught an exception while generation visualization output", exc);
}
output.setInlineMessage(visContext.getInlineMessage());