Table of Contents

Class PersistenceTransientFailureException

Namespace
MailFathom.Application.Persistence
Assembly
MailFathom.Application.dll

Indicates that a local write did not commit because the database failed in a way that can clear on its own.

public sealed class PersistenceTransientFailureException : MailFathomException, ISerializable
Inheritance
PersistenceTransientFailureException
Implements
Inherited Members

Remarks

This is the conflict's counterpart one failure class over, and it exists for the same reason: a transient failure is an ordinary loop outcome only inside OptimisticConcurrencyRetryPolicy, which stages the unit of work again from a fresh read on a connection the pool opens anew. Nothing below that can repeat the work, because a dropped connection takes the whole transaction with it — repeating the statement alone would meet a transaction the server has already discarded.

Deciding which provider failures can clear on their own belongs where the provider's exceptions are, so the session raises this and the classification stays in one place rather than being restated here.

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, and no caller between the session and the retry policy has to name a provider exception to recognize it.

Constructors

PersistenceTransientFailureException(string, Exception)

Initializes a new transient persistence failure 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.