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=AWFShR4Oof9FJ6jfXJqo&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java
Line No-84
Change-Id: Ic9fe6369a1b892e5b42760f569278fd09463a803
Issue-ID: DMAAP-373
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
catch ( Exception x )
{
log.error( x.getClass().getName () + ": " + x.getMessage () );
- throw new RuntimeException(x);
+ throw new IllegalArgumentException(x);
}
}
}