@serenity-is/corelib / addServiceErrorRecovery
Function: addServiceErrorRecovery()
addServiceErrorRecovery(
recovery): () =>void
Defined in: src/base/services.ts:27
Adds a function that tries to fix the errors of the service calls that are made with fetch (the default), e.g. one
that asks the user to confirm the password when a service says that the action needs it, so the call is made again
after it, once. The first function that handles an error decides.
Parameters
recovery
The function, see ServiceErrorRecovery.
Returns
A function that removes it.
():
void
Returns
void