Back to Devexpress

LockingException Class

corelibraries-devexpress-dot-xpo-dot-db-dot-exceptions-ca000ae3.md

latest1.5 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public class LockingException :
    Exception
vb
Public Class LockingException
    Inherits 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

LockingException Members

DevExpress.Xpo.DB.Exceptions Namespace