onFailure( )

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.

Method Declaration
Copy
Method Parameters
errorErrorRequired

The error that caused the failure.


contextHookContextRequired

Contextual information about the hook.

Returns
Return Type:Promise<object>
Was this helpful?
Yes
No