Fix Sonar vulnerabilities and Bugs
[dmaap/messagerouter/messageservice.git] / src / main / java / com / att / nsa / dmaap / DMaaPCambriaExceptionMapper.java
index e5fe8c4..c3699c7 100644 (file)
@@ -103,8 +103,8 @@ public class DMaaPCambriaExceptionMapper implements ExceptionMapper<CambriaApiEx
                /**
                 * Cambria Generic Exception
                 */
-               if(ex instanceof CambriaApiException)
-               {
+               /*if(ex instanceof CambriaApiException)
+               {*/
                        
                        errRes = ex.getErrRes();
                        if(errRes!=null) {
@@ -124,7 +124,7 @@ public class DMaaPCambriaExceptionMapper implements ExceptionMapper<CambriaApiEx
                        }
                        
                        
-               }
+               /*}
                else
                {
                        errRes = new ErrorResponse(HttpStatus.SC_NOT_FOUND, 
@@ -134,7 +134,7 @@ public class DMaaPCambriaExceptionMapper implements ExceptionMapper<CambriaApiEx
                                        errRes.getErrMapperStr()).build();
                        
                        return response;
-               }
+               }*/
                
        }