diff options
author | 2018-01-29 15:07:52 +0530 | |
---|---|---|
committer | 2018-01-29 15:10:00 +0530 | |
commit | 9d159376941f43a202246c27de5213f191ecd233 (patch) | |
tree | 3dd4082ac5d47e4a7c46a06d8c0f33ec57f9b3b2 /src/main/java/org/onap/dcae | |
parent | 2342bb1b5e101354319a30d62bb02bfde0d3805d (diff) |
sonar critical for Exception handling
Either log or rethrow this exception
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/exceptions/mappers/DBIExceptionMapper.java
Line No-62
Change-Id: Id74f81284ac81e1f5e64b5549afc66cead7a8597
Issue-ID: DCAEGEN2-210
Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
Diffstat (limited to 'src/main/java/org/onap/dcae')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java b/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java index 016ac27..cd348c1 100644 --- a/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java +++ b/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java @@ -60,7 +60,7 @@ public class DBIExceptionMapper<T extends DBIException> implements ExceptionMapp InventoryDAOManager.getInstance().initialize(); clientMessage.append(" Connection has been successfully reset. Please try again."); } catch(Exception e) { - LOG.error(String.format("Failed to re-initialize database connection: %s", e.getMessage())); + LOG.error(String.format("Failed to re-initialize database connection: %s", e)); clientMessage.append(" Connection reset attempt has failed. Please try again soon."); } |