Table of Contents

Namespace Excalibur.Domain.Exceptions

Classes

DomainException

Represents a domain-level exception that occurs within the application's business logic.

EventStreamContiguityException

Thrown when an aggregate's event stream is not contiguous during rehydration — a replayed event's version is not exactly one greater than the previously applied version. Enforces that history is replayed gap-free and in order, rather than inferring the version by counting events (which silently applies the wrong event where a missing one belongs and rehydrates a corrupt aggregate).

InvalidConfigurationException

Represents an exception that occurs when a configuration setting is invalid or missing.

UnhandledDomainEventException

Thrown when an aggregate's event-application logic does not recognize a domain event type — a missing switch arm in ApplyEventInternal. Enforces totality: an unrecognized event fails loud rather than being silently ignored while the aggregate version still advances (which would rehydrate a state that never legitimately existed).