WinApplication.HandleException(Exception) Method
Shows the message box with details on the specified exception.
Namespace: DevExpress.ExpressApp.Win
Assembly: DevExpress.ExpressApp.Win.v24.1.dll
NuGet Packages: DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design
NuGet Package: DevExpress.ExpressApp.Win
Declaration
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);
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the HandleException(Exception) method.
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.