pub enum ExecuteError<E: Error + Send + Sync + 'static> {
Domain(E),
Conflict,
Io(Error),
ActorGone,
}Expand description
Error returned when executing a command against an aggregate fails.
Generic over E, the domain-specific error type that the aggregate’s
command handler may produce (e.g., “insufficient funds”).
§Type Parameters
E- Domain error type, must implementError + Send + Sync + 'static
Variants§
Domain(E)
Command rejected by aggregate logic.
Wraps the domain-specific error returned from the aggregate’s
command handler, forwarding its Display and Error impls.
Conflict
Optimistic concurrency retries exhausted.
The command was retried the maximum number of times but each attempt encountered a version conflict with a concurrent writer.
Io(Error)
Disk I/O failure.
An underlying filesystem or storage-layer I/O error occurred while loading or persisting events.
ActorGone
Actor thread exited unexpectedly.
The background actor that owns this aggregate has shut down, so no further commands can be processed.