Enum NotificationFailurePolicy
- Namespace
- Excalibur.EventSourcing
- Assembly
- Excalibur.EventSourcing.Abstractions.dll
Defines the failure handling policy for post-commit event notification handlers.
public enum NotificationFailurePolicy
Fields
LogAndContinue = 1Logs the failure at Error level and continues with the remaining handlers.
SaveAsyncreports success.Propagate = 0Rethrows the handler's own exception to the caller, with its stack trace preserved. Events remain committed, so the save itself succeeded.
Remarks
This policy controls what happens when a notification handler throws after the
events have already been committed to the event store. Since events are already
committed, retrying SaveAsync is NOT appropriate.