Skip to main content

ExceptionMode Enum

Specifies how an exception should be handled.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public enum ExceptionMode

Members

Name Description
DisplayError

A control displays a tooltip or message box with an error description specified by the ExceptionEventArgs.ErrorText property. A tooltip is displayed for invalid cells. A message box is displayed for invalid rows (records).

ThrowException

A control throws an exception specified by the ExceptionEventArgs.Exception property.

NoAction

A control suppresses an error message box/tooltip and exceptions. Values remain unchanged.

Ignore

Discards new data and reverts to an old value.

Note

In standalone editors, because of the .NET binding mechanism, the Ignore value doesn’t work correctly. In container controls, the Ignore value works as expected.

Related API Members

The following properties accept/return ExceptionMode values:

Remarks

The ExceptionMode type enumerates values for the ExceptionEventArgs.ExceptionMode property. This allows you to specify the manner in which an exception should be handled.

See Also