Closed moolicc closed 1 year ago
We need a way to perform exception handling/logging/reporting in a centralized place.
Once implemented, API-level functions should throw exceptions and user-facing business logic functions should call into our custom handler.
One design consideration:
SafetyNet.Handle<CallingClass>(_ => ThisMethodThrows());
The inner lambda could be a function, and the return value could be pushed to an out parameter maybe?
OR we can keep using the same old/ugly try/catches everywhere and call into a special function to handle those from there.
We need a way to perform exception handling/logging/reporting in a centralized place.
Once implemented, API-level functions should throw exceptions and user-facing business logic functions should call into our custom handler.
One design consideration:
The inner lambda could be a function, and the return value could be pushed to an out parameter maybe?
OR we can keep using the same old/ugly try/catches everywhere and call into a special function to handle those from there.