class ComplianceController implements Constants {

    @ApiOperation(httpMethod = "POST", value = "Adding issue exception to the corresponding target type")
    @RequestMapping(path = "/v1/issues/add-exception", method = RequestMethod.POST)
    @ApiResponses(value = { @ApiResponse(code = 200, message = "Successfully Added Issue Exception"),
            @ApiResponse(code = 401, message = "You are not authorized to Add Issue Exception"),
            @ApiResponse(code = 403, message = "Add Issue Exception is forbidden") })
    @ResponseBody
    
    public ResponseEntity<Object> addIssueException(
            @ApiParam(value = "Provide Issue Exception Details", required = true) @RequestBody(required = true) IssueResponse issueException) {
        try {
            Boolean isExempted = complianceService.addIssueException(issueException);
            if (isExempted) {
                return ResponseUtils.buildSucessResponse("Successfully Added Issue Exception");
            } else {
                return ResponseUtils.buildFailureResponse(new Exception("Failed in Adding Issue Exception"));
            }
        } catch (ServiceException exception) {
            return ResponseUtils.buildFailureResponse(exception);
        }
    }

}