Define and throw a dedicated exception instead of using a generic one
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbT632hFUzlqc5gn&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/dme/client/SimpleExamplePublisher.java
Line No-49
Change-Id: Ic2e6f3634cd63906accfa6e6cb594506cffc4ab9
Issue-ID: DMAAP-395
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
static String transport = null;
static String messageCount = null;
- public void publishMessage(String producerFilePath) throws IOException, InterruptedException, Exception {
+ public void publishMessage(String producerFilePath) throws IOException, InterruptedException {
// create our publisher