Class PersistenceCommitOutcomeUnknownException
- Namespace
- MailFathom.Application.Persistence
- Assembly
- MailFathom.Application.dll
Indicates that a local write lost its connection while committing, so whether it became durable is unknown.
public sealed class PersistenceCommitOutcomeUnknownException : MailFathomException, ISerializable
- Inheritance
-
PersistenceCommitOutcomeUnknownException
- Implements
- Inherited Members
Remarks
This is the one persistence failure a retry may not resolve, and it is separated from
PersistenceTransientFailureException for exactly that reason. A failure raised while staging or
while saving happened before COMMIT was ever sent, so the write provably did not become durable and the
unit of work can be staged again. A failure raised by the commit round trip itself is a client that stopped
hearing from a server that may already have committed, and staging the work again would apply it a second time —
a spend total that accumulates and an audit row that is inserted blind are both written that way.
The same distinction is drawn for outgoing mail, where a connection lost after the message data leaves the client unable to tell an accepted message from a rejected one, and repeating the send risks a second copy. What answers it there is the outbox, which re-drives under an idempotency of its own; what answers it here is the caller, which knows whether its own write can be repeated against a row that may already carry it.
The message carries no provider details, SQL, tracked values, or personal data. What the database actually said stays reachable as InnerException for a log an operator reads.
Constructors
- PersistenceCommitOutcomeUnknownException(string, Exception)
Initializes a new unknown commit outcome over the provider failure that produced it.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.