macro_rules! batch_operation { ($total:expr, $operations:block) => { ... }; }
Macro for batch error handling