Sonar critical issues 07/38807/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 27 Mar 2018 04:37:36 +0000 (10:07 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Tue, 27 Mar 2018 04:37:36 +0000 (10:07 +0530)
 Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbQ-32hFUzlqc5bm&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/impl/MRConsumerImpl.java
Line No:509

Change-Id: I15c417bc47ceac7c7001ba96d1796ef883700886
Issue-ID: DMAAP-348
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/client/impl/MRConsumerImpl.java

index b1df8ce..b54fedb 100644 (file)
@@ -507,7 +507,7 @@ public class MRConsumerImpl extends MRBaseClient implements MRConsumer {
                                }
                                adds.append("filter=").append(URLEncoder.encode(fFilter, "UTF-8"));
                        } catch (UnsupportedEncodingException e) {
-                               throw new RuntimeException(e.getMessage() + "....say whaaaat?!");
+                               log.error("exception at createUrlPath ()  :  ", e);
                        }
                }
                if (adds.length() > 0) {