This static class implements central exception management. More...
Static Public Member Functions | |
| static bool | Manage (object origin, Exception e) |
| Central exception managing method; can be called in try...catch statements of user entry points. More... | |
| static void | AppDomain_UnhandledException (object sender, UnhandledExceptionEventArgs e) |
| Event handler for the AddDomain.CurrentDomain.UnhandledException event. More... | |
Properties | |
| static string | DumpFile [get, set] |
| Gets or sets the path of the dump file. More... | |
Events | |
| static EventHandler< ManageExceptionEventArgs > | ManageExceptionCallback |
This static class implements central exception management.
User entry points should try and catch exceptions which they may hand over to the Manage method. If an event handler is attached to the ManageExceptionCallback event, the event is raised. The event handler should display the exception to the user and set the event argument's ManageExceptionEventArgs.IsHandled property to true. If the Manage method does not find this property with a True value, it will throw an UnhandledException exception itself which will contain the original exception as inner exception.
Definition at line 37 of file CentralHandler.cs.
|
inlinestatic |
Event handler for the AddDomain.CurrentDomain.UnhandledException event.
Definition at line 69 of file CentralHandler.cs.
|
inlinestatic |
Central exception managing method; can be called in try...catch statements of user entry points.
| origin | Object where the exception occurred. |
| e | Exception that occurred in origin. |
Definition at line 56 of file CentralHandler.cs.
|
staticgetset |
Gets or sets the path of the dump file.
By default, a file 'bovender-dump.txt' in the temporary directory will be used.
Definition at line 92 of file CentralHandler.cs.