A hook that is triggered on any error or rejected Promise from any of the wix-data operations.
The onFailure()
hook is triggered whenever a wix-data operation or hook returns a
rejected Promise or an error.
The error that caused the failure.
Contextual information about the hook.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.