You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We have noticed a situation where an exception is raised in one of the delivery lines, namely the :sms line, and then other lines declared after it are not running. I tried looking for information on the expectation of exceptions in this gem, but couldn't find much. My initial personal expectation is that each line should be robust and an exception in one line shouldn't affect the ability for the others to run. But perhaps that is out of scope for this gem and the behavior is too application specific, not sure.
Describe the solution you'd like
Perhaps, a flag or option to have a consolidated exception handler, so we can generally log and not block additional line processing.
Describe alternatives you've considered
Building exception handling ourselves into each delivery line.
The text was updated successfully, but these errors were encountered:
each line should be robust and an exception in one line shouldn't affect the ability for the others to run
Yeah, that's something I considered initially but decided to go with the
that is out of scope for this gem and the behavior is too application specific
The problem is that I want to ensure that developers observe the exceptions, but there was no good one API to rule them all solution at the time (like, logger.error is just sweeping the dirt under rug). In modern Rails, however, we have the Rails.error.report interface which could be used here.
Though I'm still not convinced. In general, I prefer libraries not to make assumptions regarding exceptions and just let them go up the stack. However, we must clearly state in the docs that an exception in one line would interrupt the notification propagation.
With respect to our ApplicationDelivery class:
Is your feature request related to a problem? Please describe.
We have noticed a situation where an exception is raised in one of the delivery lines, namely the :sms line, and then other lines declared after it are not running. I tried looking for information on the expectation of exceptions in this gem, but couldn't find much. My initial personal expectation is that each line should be robust and an exception in one line shouldn't affect the ability for the others to run. But perhaps that is out of scope for this gem and the behavior is too application specific, not sure.
Describe the solution you'd like
Perhaps, a flag or option to have a consolidated exception handler, so we can generally log and not block additional line processing.
Describe alternatives you've considered
Building exception handling ourselves into each delivery line.
The text was updated successfully, but these errors were encountered: