Class SessionOperationFailEventArgs
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Provides data for a session’s Session.FailedCommitTransaction and Session.FailedFlushChanges events.
public class SessionOperationFailEventArgs : EventArgs
- Inheritance
-
SessionOperationFailEventArgs
- Inherited Members
Constructors
SessionOperationFailEventArgs(Exception)
Initialize a new instance of the SessionOperationFailEventArgs class with a specified exception.
public SessionOperationFailEventArgs(Exception exception)
Parameters
exception
ExceptionThe database exception occurred while performing an operation. This value is assigned to the SessionOperationFailEventArgs.Exception property.
Properties
Exception
Gets the exception thrown by a database when committing a transaction or changes made to persistent objects.
public Exception Exception { get; }
Property Value
- Exception
The database exception.
Handled
Specifies whether the default processing of an exception is prohibited.
public bool Handled { get; set; }
Property Value
- bool
true to prevent the default exception processing (an exception to be thrown in normal operations or handled via callback methods in asynchronous operations); otherwise, false.