@serenity-is/corelib / ErrorHandling / unhandledRejectionHandler
Function: unhandledRejectionHandler()
unhandledRejectionHandler(
err):void
Defined in: src/base/errorhandling.tsx:100
Unhandled promise rejection error handler. It's purpose is to ignore logging serviceCall / serviceFetch errors as they have built-in error handling but browser logs it in the console, while Node crashes. Include below code in script-init/errorhandling.ts to enable: window.addEventListener("unhandledrejection", ErrorHandling.unhandledRejectionHandler);
Parameters
err
PromiseRejectionEvent
Returns
void