.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

WinApplication.HandleException(Exception) Method

Shows the message box with details on the specified exception.

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v19.2.dll

Declaration

public void HandleException(
    Exception e
)
Public Sub HandleException(
    e As Exception
)

Parameters

Name Type Description
e Exception

A System.Exception object representing an exception that occurred.

Remarks

Triggers the WinApplication.CustomHandleException event. If the event's Handled parameter is not set to true, the message box is displayed via the Messaging.Show method (an overload that takes the caption and exception parameters is used).

The HandleException method is called each time an exception occurs when running a Windows Forms application (see the snippet from the Program.Main method below).

static void Main() {
    // ...
   try {
        winApplication.Setup();
        winApplication.Start();
    }
    catch (Exception e) {
        winApplication.HandleException(e);
    }
}
See Also