diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-04-18 20:43:19 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-04-18 20:43:19 +0530 |
commit | e25f2025171ba6f9f2f3fddc76cee021bf86c9d1 (patch) | |
tree | 9b0a66f99767e89c905351c0ee21334f2ff5e04f /src/main/java | |
parent | 3744ebfceb35de70a65c6faeb69d00fc50dca533 (diff) |
Sonar critical issues
Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vahb32hFUzlqc5uC&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java
Line No-74
Change-Id: I624da3f9a741d243595a0f7da9593ddbb64b4e43
Issue-ID: DMAAP-430
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java index 54a9bc6..c8172a9 100644 --- a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java +++ b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java @@ -72,6 +72,7 @@ public class CambriaJsonStreamReader implements reader { throw new CambriaApiException(HttpServletResponse.SC_BAD_REQUEST, "Expecting an array or an object."); } } catch (JSONException e) { + Log.error(e); throw new CambriaApiException(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); } } |