Table of Contents

Class StaleStateException

Namespace
FishMMO.Database.Exceptions
Assembly
FishMMO-DB.dll

Thrown when an operation fails due to stale state (optimistic concurrency violation). The incoming version is behind the persisted version, indicating a conflicting write occurred. This is a non-transient, non-retryable logical failure.

public sealed class StaleStateException : DatabaseException, ISerializable
Inheritance
StaleStateException
Implements
Inherited Members

Remarks

Services throw this exception inside BaseService execution wrappers. BaseService.ClassifyException maps it to StaleState and returns a DatabaseResult failure. Callers should re-read the entity and reconcile before reattempting the operation.

Constructors

StaleStateException(string)

Initializes a new instance of the StaleStateException class.

public StaleStateException(string message)

Parameters

message string

A message describing the concurrency conflict.

StaleStateException(string, Exception)

Initializes a new instance of the StaleStateException class.

public StaleStateException(string message, Exception innerException)

Parameters

message string

A message describing the concurrency conflict.

innerException Exception

The exception that caused this concurrency failure.