A custom hook that receives an injectable function and a catcher function that handles any thrown error. It returns a modified version of the injectable function that catches any errors thrown and passes them to the catcher function.
The original function to be modified.
A function that handles any error thrown.
This function does not return anything.
Generated using TypeDoc
A custom hook that receives an injectable function and a catcher function that handles any thrown error. It returns a modified version of the injectable function that catches any errors thrown and passes them to the catcher function.