error handling best practices

sure, I need to add another example for that. It depends on whether you want fail-fast or accumulate behavior