From 769561b8cde2d22f7becaedfa9bf5190fb0b5b48 Mon Sep 17 00:00:00 2001 From: Soumendu Sekhar Acharya Date: Mon, 4 Dec 2017 11:49:54 +0530 Subject: sonar critical for handling a caught exception Either log or rethrow this exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient#assignees=soumendu Location: src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java Line No-81 Change-Id: I6005f83d74c9118d060bd4096bacfc8dd437af73 Issue-ID: DMAAP-173 Signed-off-by: Soumendu Sekhar Acharya --- src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java index eac8b7f..290a071 100644 --- a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java +++ b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java @@ -81,6 +81,7 @@ public class SampleConsumer { catch ( Exception x ) { log.error( x.getClass().getName () + ": " + x.getMessage () ); + throw new RuntimeException(x); } } } -- cgit 1.2.3-korg