Event TransactionCompletionFailed
Occurs when a transaction-completion step (commit or rollback) fails. The handler receives a RepoTransactionCompletionFailureInfo carrying the operation that failed and the underlying exception, and can be used to log errors or perform custom error handling.
Namespace: FulcrumFS
Assembly: FulcrumFS.dll
Syntax
public event RepoTransactionCompletionFailedHandler? TransactionCompletionFailed
Returns
| Type | Description |
|---|---|
| RepoTransactionCompletionFailedHandler | Occurs when a transaction-completion step (commit or rollback) fails. The handler receives a carrying the operation that failed and the underlying exception, and can be used to log errors or perform custom error handling. |
Remarks
This event fires only for failures of the final commit or rollback step itself, not for in-flight exceptions raised while operating on the transaction (validation errors, processor failures, etc., which surface directly to the calling code).
If multiple errors occurred during the completion step, Exception will be an AggregateException.
Exceptions are not thrown automatically for completion-step failures since the affected files (added during commit or scheduled for deletion during rollback) remain accessible afterwards; they are merely left in an indeterminate state pending repair by the next cleaner pass. The handler can throw an exception if throwing behavior is desired.