diff options
author | 2018-04-13 10:56:02 +0530 | |
---|---|---|
committer | 2018-04-13 10:56:02 +0530 | |
commit | 42c9d364677967d0e4db72898457197399f3d9e5 (patch) | |
tree | 7d48f107208aa1931e7cb754ab3dea89381862cf /src | |
parent | a6c30bf53e5a7241d310e6579af7f0705b303329 (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-ValN32hFUzlqc5zj&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java
Line No-118
Change-Id: Ief99865ceb889340c2895b023cede8c355052c19
Issue-ID: DMAAP-407
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java b/src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java index 0fbf657..adebbd2 100644 --- a/src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java +++ b/src/main/java/com/att/nsa/cambria/service/impl/UIServiceImpl.java @@ -115,7 +115,7 @@ public class UIServiceImpl implements UIService { DMaaPResponseBuilder.respondOk(dmaapContext, key.asJsonObject()); } else { LOGGER.info("Details of apikey [" + apiKey + "] not found. Returning response"); - throw new Exception("Key [" + apiKey + "] not found."); + throw new IOException("Key [" + apiKey + "] not found."); } } |