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>
                protected MRIdentityManager constructClient ( Collection<String> hosts ) { try {
                        return new MRMetaClient ( hosts );
                } catch (MalformedURLException e) {
-                       throw new RuntimeException(e);
+                       throw new IllegalArgumentException(e);
                } }
        }