onTxnOperationError MethodProtected @beta

Called when doUndoOperation or doRedoOperation fails to reverse or reinstate a Txn.

onTxnOperationError(_operation: "undo" | "redo", _error: unknown): Promise<void>

@note Implementations should not throw. Any exception thrown by this method propagates to the caller of doUndoOperation or doRedoOperation.

Parameter Type Description
_operation "undo" | "redo" The operation that failed.
_error unknown The error thrown by reverseSingleTxnAsync or reinstateTxnAsync.

Returns - Promise

Defined in

Last Updated: 05 November, 2026