public class HandleExceptionEventArgs :
Public Class HandleExceptionEventArgs
The CustomHandleExceptionOnClosing event occurs when an exception is triggered while a WinWindow is being closed. You can handle this event to manually process an exceptional situation. The CustomHandleExceptionEventArgs.Exception property specifies the original exception. Perform the actions required to correct it and set the Handled argument passed into the event handler to true, to suppress the original exception.