I have some data access methods and was wondering if there was a way to implement a error handling function that would take these data access methods as a parameter and execute them inside the try/catch of this generic static error handling function that would just log and throw the error if the method it was executing throws an exception.
Is there a pattern for this to reduce code duplication for error handling if the way that they are handled in the catch are going to be the same?