How to handle and collect errors in loops

What if we have a loop in which some actions occur that can cause an error. What if we need to continue iterating through the loop after the errors and save the errors to the log? Today I will show you how this can be done even for transactional operations.

Source : Volodymyr Dvernytskyi
Read more…