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>
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.");
}