Skip to main content
All docs
V25.1
  • InvalidItemExceptionArgs.ExceptionMode Property

    Gets or sets how to handle an exception.

    Namespace: DevExpress.Mvvm.Xpf

    Assembly: DevExpress.Mvvm.v25.1.dll

    NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

    Declaration

    public ExceptionMode ExceptionMode { get; set; }

    Property Value

    Type Description
    ExceptionMode

    A value that specifies how to handle an exception.

    Available values:

    Name Description
    DisplayError

    Displays an error message box with text specified by the ErrorText property. Use the WindowCaption property to specify the message box’s caption.

    ThrowException

    Throws an exception. Use the Exception property to get this exception.

    NoAction

    Displays an error icon and does not allow users to focus other rows until values are corrected.

    Ignore

    Ignores an exception.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExceptionMode property.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also