summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-04 12:21:22 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-04 12:21:22 +0530
commit4362c160c7aee33528a764597954738809521b7f (patch)
treeb4f01a1b32c18c488391de4547310846147ec806
parent3eee9b2080454391a6e4df4cc446f9a4340e3f44 (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-MbO932hFUzlqc5WC&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientBuilders.java Line No-282 Change-Id: If2f14bde9756c3318cb98f4d6e352acf550dc20e Issue-ID: DMAAP-384 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
-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 96d6fc5..76df039 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
@@ -279,7 +279,7 @@ public class MRClientBuilders
protected MRIdentityManager constructClient ( Collection<String> hosts ) { try {
return new MRMetaClient ( hosts );
} catch (MalformedURLException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
} }
}