Closed mwarkentin closed 9 years ago
@mwarkentin thanks for the suggestion; it's an interesting idea. In our company we do something similar (with various services) but the fallback sequence is encapsulated within an internal package, messenger
.
In the interest of simplicity for this library I am inclined to leave the error treatments as is so others who have alternative fallback designs can handle the errors as they please. If this turns out to be a widely requested fallback I'll certainly re-evaluate that call.
Makes sense. Thanks for taking a look!
I've found myself wrapping calls to send messages to Hipchat with fallbacks (generally to email). This works fine, but I was wondering if it makes any sense to add some support for this to the library? The code generally looks something like this: