aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-04 16:22:02 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-04 16:22:02 +0530
commit2b34b699cdb91127f9437b1e2f7763bcdfefe6aa (patch)
tree0150cde6005f1d00093b2aa9e92378607b2d2f07 /src/main
parent4362c160c7aee33528a764597954738809521b7f (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-MbPQ32hFUzlqc5XF&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientFactory.java Line No-565 Change-Id: I4f5b03efd3cbc885680ded0ec6a496c60ecc793e Issue-ID: DMAAP-385 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
index 496f94e..32b44e4 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
@@ -562,7 +562,7 @@ public class MRClientFactory {
try {
tmi = new MRMetaClient(hostSet);
} catch (MalformedURLException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
tmi.setApiCredentials(apiKey, apiSecret);
return tmi;