From b6ed3bfa8f64a4850392f47daf46846fec51e36d Mon Sep 17 00:00:00 2001 From: Rich Tabedzki Date: Wed, 12 Apr 2017 15:26:18 +0000 Subject: [SDNGC-5] summary expanded catch block in fech() to handle SQLException separately from other exceptions Change-Id: I9f9d52b088323df3d73ba172f6f88d2ef927abb8 Signed-off-by: Rich Tabedzki --- .../src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 sli/common/src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java (limited to 'sli/common') diff --git a/sli/common/src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java b/sli/common/src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java old mode 100644 new mode 100755 index db8ef15..e3bd099 --- a/sli/common/src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java +++ b/sli/common/src/main/java/org/openecomp/sdnc/sli/SvcLogicDblibStore.java @@ -189,8 +189,10 @@ public class SvcLogicDblibStore implements SvcLogicStore { } else { return (null); } - } catch (Exception e) { + } catch (SQLException e) { throw new ConfigurationException("SQL query failed", e); + } catch (Exception e) { + throw new ConfigurationException("Graph processing failed", e); } finally { if (results != null) { try { -- cgit 1.2.3-korg