Table of Contents

Delegate CdcFatalErrorHandler<TEvent>

Namespace
Excalibur.Cdc
Assembly
Excalibur.Cdc.dll

Handles a fatal error that occurs during CDC processing for a provider whose change events are of type TEvent.

public delegate Task CdcFatalErrorHandler<TEvent>(Exception exception, TEvent? failedEvent) where TEvent : class

Parameters

exception Exception

The exception that occurred during processing.

failedEvent TEvent

The change event that failed to process, or null when the fatal error occurred at the connection / poll-loop level and no single change event is implicated.

Returns

Task

A task representing the asynchronous operation.

Type Parameters

TEvent

The provider-specific change-event type.

Remarks

When no handler is configured (OnFatalError is null), a fatal error is rethrown and processing stops — fail-loud, never a silent infinite retry.