sonar critical for handling a caught exception 91/25391/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Mon, 4 Dec 2017 06:19:54 +0000 (11:49 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Mon, 4 Dec 2017 06:23:48 +0000 (11:53 +0530)
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 <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java

index eac8b7f..290a071 100644 (file)
@@ -81,6 +81,7 @@ public class SampleConsumer {
                catch ( Exception x )
                {
                     log.error( x.getClass().getName () + ": " + x.getMessage () );
+                    throw new RuntimeException(x);
                }
        }
 }