Skip to main content

LockingException Class

An exception thrown because an attempt is made to modify a row in a database, but its version doesn’t match the version of the row being posted.

Namespace: DevExpress.Xpo.DB.Exceptions

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public class LockingException :
    Exception

Remarks

This exception supports data concurrency in the Optimistic Locking mechanism. It is raised if the row’s data being written back to a database is not consistent with the current data in the database. For instance, a row has been modified by another user/thread after the row’s values were read by the current thread. To learn more about optimistic concurrency, refer to Optimistic Concurrency.

Inheritance

Object
Exception
LockingException
See Also