Skip to content
ModularityKit.Mutator ModularityKit.Mutator Docs
  • Home
  • Core
  • Governance
  • Redis
  • API
Search Results for

    Show / Hide Table of Contents

    Class ConcurrencyException

    Exception thrown when concurrency conflict is detected during mutation execution.

    Inheritance
    object
    Exception
    MutationException
    ConcurrencyException
    Implements
    ISerializable
    Inherited Members
    MutationException.ExecutionId
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    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 Source

    ConcurrencyException(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.

    | Edit this page View Source

    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 Source

    ConflictingExecutionId

    The execution ID of the mutation that caused the conflict, if known.

    Declaration
    public string? ConflictingExecutionId { get; init; }
    Property Value
    Type Description
    string

    Implements

    ISerializable
    • Edit this page
    • View Source
    In this article
    ModularityKit.Mutator Generated from XML docs and published from main. Back to top