Skip to main content
.NET 6.0+

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

NuGet Package: DevExpress.Xpo

Declaration

public Exception Exception { get; }

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.

See Also