C# Class SDE.ApplicationConfiguration.SdeErrorHandler

The primary error handler used throughout the application. It displays the exceptions with an error dialog and sends the information to the debugger dialog if necessary. Exceptions are ALWAYS dispalyed with this class. The priority order is as follow : - Top most window if it exists - Application's main window if it exists and is loaded - System.Windows.MessageBox's dialog window - If all the above fails, the exception is stored in crash.log or debug.log
Inheritance: IErrorHandler
Show file Open project: Tokeiburu/RagnarokSDE

Public Methods

Method Description
Handle ( Exception exception, ErrorLevel errorLevel ) : void
Handle ( object caller, Exception exception, ErrorLevel errorLevel ) : void
Handle ( object caller, string exception, ErrorLevel errorLevel ) : void
Handle ( string exception, ErrorLevel errorLevel ) : void
ShowStackTraceViewer ( ) : void
YesNoRequest ( string message, string caption ) : bool

Private Methods

Method Description
SdeErrorHandler ( ) : System
_checkMainWindow ( ) : void
_exceptionAlreadyShown ( string exception ) : bool
_getHeader ( ErrorLevel level ) : string
_reportAnyManagedExceptions ( string message, Exception exception, ErrorLevel errorLevel ) : void
_showBasicError ( string message, string caption ) : void

Method Details

Handle() public method

public Handle ( Exception exception, ErrorLevel errorLevel ) : void
exception System.Exception
errorLevel ErrorLevel
return void

Handle() public method

public Handle ( object caller, Exception exception, ErrorLevel errorLevel ) : void
caller object
exception System.Exception
errorLevel ErrorLevel
return void

Handle() public method

public Handle ( object caller, string exception, ErrorLevel errorLevel ) : void
caller object
exception string
errorLevel ErrorLevel
return void

Handle() public method

public Handle ( string exception, ErrorLevel errorLevel ) : void
exception string
errorLevel ErrorLevel
return void

ShowStackTraceViewer() public static method

public static ShowStackTraceViewer ( ) : void
return void

YesNoRequest() public method

public YesNoRequest ( string message, string caption ) : bool
message string
caption string
return bool