Skip to main content
Table of Contents

Class ConcurrencyConflictException

Namespace
Stratara.Abstractions.Persistence
Assembly
Stratara.Abstractions.dll

Thrown by an ITransaction implementation when an optimistic-concurrency conflict is detected during commit (i.e. the row was modified or deleted by another concurrent caller between the entity load and the save).

public sealed class ConcurrencyConflictException : Exception, ISerializable
Inheritance
ConcurrencyConflictException
Implements
Inherited Members
Extension Methods

Remarks

Provider-agnostic wrapper that abstracts EF Core's DbUpdateConcurrencyException (and equivalent provider exceptions) so framework-level code in Stratara.Projections and consumers can react to concurrency conflicts without taking an EF Core dependency.

For projection delete handlers, callers may swallow this exception silently — a missing row is the desired end-state of a delete. For projection update handlers, the conventional response is to retry after a fresh read.

Constructors

ConcurrencyConflictException()

Initializes a new instance with a default message.

public ConcurrencyConflictException()

ConcurrencyConflictException(string)

Initializes a new instance with the supplied message.

public ConcurrencyConflictException(string message)

Parameters

message string

The message that describes the error.

ConcurrencyConflictException(string, Exception)

Initializes a new instance with the supplied message and inner exception.

public ConcurrencyConflictException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The provider-specific exception that caused this one.