Table of Contents

Class ConcurrencyException

Namespace
Opossum.Exceptions
Assembly
Opossum.dll

Exception thrown by the file-system event store for internal ledger-level concurrency conflicts (e.g. a stale AfterSequencePosition check).

This is a subclass of AppendConditionFailedException. Callers should catch AppendConditionFailedException rather than this type directly, unless they need to inspect the ExpectedSequence / ActualSequence properties for diagnostic purposes.

public class ConcurrencyException : AppendConditionFailedException, ISerializable
Inheritance
ConcurrencyException
Implements
Inherited Members

Constructors

ConcurrencyException()

Initializes a new instance of the ConcurrencyException class

public ConcurrencyException()

ConcurrencyException(string)

Initializes a new instance of the ConcurrencyException class with a specified error message

public ConcurrencyException(string message)

Parameters

message string

The message that describes the error

ConcurrencyException(string, Exception)

Initializes a new instance of the ConcurrencyException class with a specified error message and inner exception

public ConcurrencyException(string message, Exception innerException)

Parameters

message string

The message that describes the error

innerException Exception

The exception that is the cause of the current exception

ConcurrencyException(string, long, long)

Initializes a new instance of the ConcurrencyException class with a specified error message and sequence information

public ConcurrencyException(string message, long expectedSequence, long actualSequence)

Parameters

message string

The message that describes the error

expectedSequence long

The expected sequence position

actualSequence long

The actual sequence position found

ConcurrencyException(string, long, long, Exception)

Initializes a new instance of the ConcurrencyException class with a specified error message, sequence information, and inner exception

public ConcurrencyException(string message, long expectedSequence, long actualSequence, Exception innerException)

Parameters

message string

The message that describes the error

expectedSequence long

The expected sequence position

actualSequence long

The actual sequence position found

innerException Exception

The exception that is the cause of the current exception

Properties

ActualSequence

Gets the actual sequence position found

public long? ActualSequence { get; }

Property Value

long?

ExpectedSequence

Gets the expected sequence position

public long? ExpectedSequence { get; }

Property Value

long?