api/src/main/java/com/codechallenge/api/exception/GenericExceptionHandler.java
@ExceptionHandler(NoDataFoundException.class)
    public ResponseEntity<ErrorResponse> handle(NoDataFoundException e) {
				
		ErrorResponse errorResponse = new ErrorResponse();
		errorResponse.setErrorMessage(e.getMessage());
		
		return new ResponseEntity<>(errorResponse,  HttpStatus.NOT_FOUND);
    }
/**
	 * Handle record not found errors.
	 * @param e exception
	 * @return REST error response
	 */
Handle record not found errors.
@param e exception
@return REST error response
Handle record not found errors . @param e exception @return REST error response
@ExceptionHandler(NoDataFoundException.class)
    public ResponseEntity<ErrorResponse> handle(NoDataFoundException e) {
		ErrorResponse errorResponse = new ErrorResponse();
		errorResponse.setErrorMessage(e.getMessage());
		return new ResponseEntity<>(errorResponse,  HttpStatus.NOT_FOUND);
    }
@ ExceptionHandler ( NoDataFoundException . class ) public ResponseEntity < ErrorResponse > handle ( NoDataFoundException e ) { ErrorResponse errorResponse = new ErrorResponse ( ) ; errorResponse . setErrorMessage ( e . getMessage ( ) ) ; return new ResponseEntity < > ( errorResponse , HttpStatus . NOT_FOUND ) ; }
Handle record not found errors.
Handle record not found errors .