Hook for handling errors that occur when execution of functions, can compensate for the error by returning a value.
When you just want to log an error without handling it throw the error again in the handler function.
Note do not define an empty error handler as it will cause error to not be logged or handled.
Hook for handling errors that occur when execution of functions, can compensate for the error by returning a value. When you just want to log an error without handling it throw the error again in the handler function. Note do not define an empty error handler as it will cause error to not be logged or handled.