summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Kumar26 <sk00552209@techmahindra.com>2018-05-07 17:05:28 +0530
committerSaurabh Kumar26 <sk00552209@techmahindra.com>2018-05-07 17:05:28 +0530
commit06f4353158c29d84920ebb2a730e483f149ea32c (patch)
tree4dfb5c405fa3f4341f7b6d303a06073612eeb7f8
parent0ee32170163c467c88e35f2ec019df486b9f4c33 (diff)
sonar critical for Exception handling
Rethrow this exception Sonar Link: https://sonar.onap.org/project/issues?assignees=SaurabhKumar26&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nas/cambria/resources/streamReaders/CambriaRawStreamReader.java Line No. 131 Change-Id: I27409b296d30d3d2fee459f769b5eb06ec729ecc Issue-ID: DMAAP-471 Signed-off-by: Saurabh Kumar26 <sk00552209@techmahindra.com>
-rw-r--r--src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaRawStreamReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaRawStreamReader.java b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaRawStreamReader.java
index 16f6785..d562360 100644
--- a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaRawStreamReader.java
+++ b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaRawStreamReader.java
@@ -130,7 +130,7 @@ public class CambriaRawStreamReader implements reader
}
catch ( IOException e )
{
- throw new CambriaApiException ( HttpServletResponse.SC_BAD_REQUEST, e.getMessage () );
+ throw new CambriaApiException ( HttpServletResponse.SC_BAD_REQUEST, e.toString());
}
}