summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-01-29 11:46:37 +0530
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>2018-01-29 11:48:07 +0530
commite409bcd51428cacfee12beb46901893158bb0a75 (patch)
treee5b4ec1cc0d5c1b5c5c621c0f5155630c34662da /src/main
parentb7b7971d7451c3d838d6c72f5dd2737043ce1501 (diff)
sonar critical throw a dedicated exception
Define and throw a dedicated exception instead of using a generic one Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=CRITICAL|assignees=Snigdha503415 Location: src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java Line No-134 Change-Id: I94f4d39fd55dc11c1459971074944fc2ff589cae Issue-ID: DCAEGEN2-214 Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java b/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
index b5f0b04..717d8c9 100644
--- a/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
+++ b/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
@@ -131,7 +131,7 @@ public final class InventoryDAOManager {
LOG.info(String.format("Sql view created: %s", viewName));
}
} catch (Exception e) {
- throw new RuntimeException("", e);
+ throw new InventoryDAOManagerSetupException("view does not exist, " + e);
}
// Do this assignment at the end after performing table checks to ensure that connection is good