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-MbUC32hFUzlqc5gx&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java
Line No-64
Change-Id: Ifc25038de09c95af253e40baa946a4aca9af66fb
Issue-ID: DMAAP-397
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
}
}
- public void publishMessage ( String producerFilePath , int count ) throws IOException, InterruptedException, Exception
+ public void publishMessage ( String producerFilePath , int count ) throws IOException, InterruptedException
{
// create our publisher
final MRBatchingPublisher pub = MRClientFactory.createBatchingPublisher (producerFilePath,true);