Return a safer version of a callback that runs inside a try/catch block.
Used to log errors.
Type of callback, helps debugging when a function failed.
The callback function is turn into a safer version.
Return a safer version of a callback that runs inside a try/catch block.