aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-02 10:38:36 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-02 10:38:36 +0530
commit4646bcb6b3bce84fe8efb877cfa259756ff87993 (patch)
tree68f10cc4e3f4a51cbf1bd1f38250d0cfa3ba3655 /src/main/java
parent9e892a54a3598b0d8f91b5e7456fc6496aec56b8 (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-MbRs32hFUzlqc5eM&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java Line No-778 Change-Id: I3677fc5a44f66658c04dfcaefed974c748356bc9 Issue-ID: DMAAP-377 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
index db982ec..2bb4e73 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
@@ -775,7 +775,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP
} catch (Exception x) {
getLog().warn(x.getMessage(), x);
- throw new Exception(x.getMessage());
+ throw new IllegalArgumentException(x.getMessage());
}
}