diff options
author | 2018-07-27 10:16:46 +0530 | |
---|---|---|
committer | 2018-07-27 10:16:57 +0530 | |
commit | 0e60f33764e1d5a22e056b1761544e97710472bb (patch) | |
tree | 3f2789998d1631e8a37f3a25caefe29eef829065 /src/main/java/org/onap/dcae/inventory/exceptions/mappers | |
parent | 8655e623e033096327cc6b3e46ca49a0def2a1aa (diff) |
Sonar Critical issue
Either log or rethrow this exception
Sonar link : https://sonar.onap.org/issues?myIssues=true&open=AWSYoWCawGn37JfbvTzk&resolved=false
Location : src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java:L62
Change-Id: Ic2c2e1736acdcd60514e582f62a2de765d717508
Issue-ID: DCAEGEN2-634
Signed-off-by: BharathS24 <BS00493532@techmahindra.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/inventory/exceptions/mappers')
-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 965953f..3292d60 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) { - errorLogger.error(String.format("Failed to re-initialize database connection: %s", e.getMessage())); + errorLogger.error(String.format("Failed to re-initialize database connection: %s", e)); clientMessage.append(" Connection reset attempt has failed. Please try again soon."); } |