Wraps a function with a try-catch block to catch and log any errors.
A function to wrap with a try-catch block.
A function that returns null if an error is thrown.
Wraps a function with a try-catch block to catch and log any errors.