diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 16:19:02 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 16:19:02 +0530 |
commit | 9e892a54a3598b0d8f91b5e7456fc6496aec56b8 (patch) | |
tree | 4cfe1c3e4e649450847e47631837d0901d35abe0 /src/main/java/com | |
parent | 55f758eafc0a1a3c8707a2e5110a053b961e166d (diff) |
Sonar critical issues
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>
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 290a071..56c8a4a 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,7 +81,7 @@ public class SampleConsumer { catch ( Exception x ) { log.error( x.getClass().getName () + ": " + x.getMessage () ); - throw new RuntimeException(x); + throw new IllegalArgumentException(x); } } } |