SessionOperationFailEventArgs.Exception Property
Gets the exception thrown by a database when committing a transaction or changes made to persistent objects.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Property Value
Type | Description |
---|---|
Exception | The database exception. |
Remarks
The Session.FailedCommitTransaction or Session.FailedFlushChanges event is raised when a database throws an exception when an operation fails, due to database constraints or other circumstances. Use the Exception property to get the exception’s details. To specify whether the exception is handled, use the SessionOperationFailEventArgs.Handled property.