Curvostella

Fatal Error

Support for the Fatal Error Abstraction
in the XHelpers Library (Samples with Figures)

Curvostella

SergCODE source code package (Freeware) SergCODE source code package (Freeware)
XHelpers library (Freeware)

Fatal error is an important programming abstraction. In the XHelpers library, it is supported by the XFatalError class (the XHelpers.Core.dll module). The functionality offered allows (if necessary) interrupt an application in an elegant way by leaving debugging information about the cause of crash in a black box (in this case, the Temp folder and the event log). A fatal error may be initiated explicitly (by the XFatalError.Raise method) as well as implicitly (by the handler of unhandled events, the XFatalError.RaiseOnUnhandledException property) or when a critical (for interruptions) section (executed by the XCriticalOperation.Execute method) crashes.


Artificial Crash of the ConsoleApp application — Unhandled Exception (Chain of Exceptions):


Artificial Crash of the ConsoleApp application — Exception in the Critical (for Interruptions) Section:


Explicit Call of XFatalError.Raise — Direct Initiation of a Fatal Error:


Fatal Error in the WPF application — Deep Call Stack:


Preliminary Fatal Error Dialog Box — Suggestion to View Saved (in a Black Box) Debugging Information:



Top

© Sergei Kitaev (Китаев С.Ю.)