Class ConcurrencyException
Exception thrown when concurrency conflict is detected during mutation execution.
Implements
Inherited Members
Namespace: ModularityKit.Mutator.Abstractions.Exceptions
Assembly: ModularityKit.Mutator.dll
Syntax
public sealed class ConcurrencyException : MutationException, ISerializable
Remarks
ConcurrencyException occurs when two or more mutations attempt to modify the same state simultaneously, violating optimistic concurrency rules or integrity constraints.
This exception can provide the ConflictingExecutionId, which identifies the execution that caused the conflict, useful for diagnostics or retry mechanisms.
Constructors
| Edit this page View SourceConcurrencyException(string)
Initializes a new ConcurrencyException with a specified message.
Declaration
public ConcurrencyException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message describing the conflict. |
ConcurrencyException(string, string)
Initializes a new ConcurrencyException with a specified message and conflicting execution ID.
Declaration
public ConcurrencyException(string message, string conflictingExecutionId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message describing the conflict. |
| string | conflictingExecutionId | The execution ID that caused the conflict. |
Properties
| Edit this page View SourceConflictingExecutionId
The execution ID of the mutation that caused the conflict, if known.
Declaration
public string? ConflictingExecutionId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |