aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-03-30 14:41:51 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-03-30 14:41:51 +0530
commit881ab9c53cc7d6e9b2735bedd6799abbc1c0c630 (patch)
treea491eee8ed7affcfe49f21c92723301c72e521b4 /src
parent8e662e7917f7ea9c34b409da62fc8bc15027c413 (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=AV4-MbO932hFUzlqc5WB&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientBuilders.java Line No-134 Change-Id: I05e679d6c02be2c55ad7e378d4c5eabe3569546a Issue-ID: DMAAP-371 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientBuilders.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
index c7707f1..f9b8039 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
@@ -131,7 +131,7 @@ public class MRClientBuilders
try {
return new MRConsumerImpl ( fHosts, fTopic, fGroup, fId, fTimeoutMs, fLimit, fFilter, fApiKey, fApiSecret );
} catch (MalformedURLException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}