summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-16 14:34:49 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-16 14:34:49 +0530
commit2baebaa9396eca7d94481b9191daf4ef62a254ab (patch)
treeb119f3aa625432708c482155570be1b153219278 /src/main/java/com/att/nsa
parent5e155830591ea3a0ea4b2f0bfa0dd423b53edef8 (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.msgrtr%3Amsgrtr&open=AV4-VaZ832hFUzlqc5lo&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java Line No-148 Change-Id: Iac2254a7faf965a26c02f4ef2f270f8ee1671bb7 Issue-ID: DMAAP-412 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/nsa')
-rw-r--r--src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
index a7b0598..2959f41 100644
--- a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
+++ b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
@@ -145,7 +145,7 @@ public class DMaaPMetricsSender implements Runnable {
fCambria = DMaaPCambriaClientFactory.createSimplePublisher(cambriaBaseUrl, topic);
} catch (UnknownHostException e) {
log.warn("Unable to get localhost address in MetricsSender constructor.", e);
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}