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.