Maybe it’s not the most popular need, but sometimes you need to provide main feature in the most bullet proof way, so every other aspect around given feature can fail but the feature - not.
What are the requirements? It has to catch all possible exceptions on production environment, but still pass them to error notification software. It has to raise errors on staging / dev / test environments.
The implemenation is fairly easy:
You can use it this way:
It’s super easy, but may improve user experience when things go south.