add test cases after the kafka 11 upgrade changes
[dmaap/messagerouter/messageservice.git] / src / main / java / com / att / nsa / dmaap / DMaaPWebExceptionMapper.java
index 47765c3..75c4525 100644 (file)
@@ -8,14 +8,14 @@
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *        http://www.apache.org/licenses/LICENSE-2.0
- *  
+*  
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  *  ============LICENSE_END=========================================================
- *
+ *  
  *  ECOMP is a trademark and service mark of AT&T Intellectual Property.
  *  
  *******************************************************************************/
@@ -39,14 +39,14 @@ import com.att.eelf.configuration.EELFLogger;
 import com.att.eelf.configuration.EELFManager;
 import org.springframework.beans.factory.annotation.Autowired;
 
-import com.att.nsa.cambria.exception.DMaaPErrorMessages;
-import com.att.nsa.cambria.exception.DMaaPResponseCode;
-import com.att.nsa.cambria.exception.ErrorResponse;
+import com.att.dmf.mr.exception.DMaaPErrorMessages;
+import com.att.dmf.mr.exception.DMaaPResponseCode;
+import com.att.dmf.mr.exception.ErrorResponse;
 
 /**
  * Exception Mapper class to handle
  * Web Exceptions
- * @author author
+ * @author rajashree.khare
  *
  */
 @Provider
@@ -84,7 +84,7 @@ public class DMaaPWebExceptionMapper implements ExceptionMapper<WebApplicationEx
         */
        @Override
        public Response toResponse(WebApplicationException ex) {
-               
+               //System.out.println("--------------------------------------------------"+ex);
                LOGGER.info("Reached WebException Mapper");
                
                /**
@@ -150,7 +150,7 @@ public class DMaaPWebExceptionMapper implements ExceptionMapper<WebApplicationEx
                 * Malformed request
                 */
                if(ex instanceof BadRequestException)
-               {   ex.printStackTrace();
+               {
                        errRes = new ErrorResponse(HttpStatus.SC_BAD_REQUEST,DMaaPResponseCode.INCORRECT_JSON.
                                        getResponseCode(),msgs.getBadRequest());