C# Class BF2Statistics.ExceptionForm

ファイルを表示 Open project: BF2Statistics/ControlCenter Class Usage Examples

Protected Properties

Property Type Description
ExceptionObj Exception
_logFile string

Public Methods

Method Description
ExceptionForm ( Exception E, bool Recoverable ) : System

Constructor

ShowDbConnectError ( DbConnectException e ) : void

Displays a custom version of this form to display database connection errors

ShowDialog ( ) : DialogResult
ShowDialog ( IWin32Window owner ) : DialogResult
ShowDialog ( bool AppendExceptionMessage ) : DialogResult
ShowTemplateError ( TemplateCompilationException E, string TemplateFile ) : DialogResult

Displays a custom version of this form to display Razor template compile errors

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

buttonDetails_Click ( object sender, EventArgs e ) : void

Expands / Hides the exception details panel

buttonViewLog_Click ( object sender, EventArgs e ) : void

Opens the Trace Log in a text editor

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

ExceptionForm() public method

Constructor
public ExceptionForm ( Exception E, bool Recoverable ) : System
E Exception The exception object
Recoverable bool Defines if the exception is recoverable
return System

ShowDbConnectError() public static method

Displays a custom version of this form to display database connection errors
public static ShowDbConnectError ( DbConnectException e ) : void
e DbConnectException
return void

ShowDialog() public method

public ShowDialog ( ) : DialogResult
return DialogResult

ShowDialog() public method

public ShowDialog ( IWin32Window owner ) : DialogResult
owner IWin32Window
return DialogResult

ShowDialog() public method

public ShowDialog ( bool AppendExceptionMessage ) : DialogResult
AppendExceptionMessage bool
return DialogResult

ShowTemplateError() public static method

Displays a custom version of this form to display Razor template compile errors
public static ShowTemplateError ( TemplateCompilationException E, string TemplateFile ) : DialogResult
E TemplateCompilationException
TemplateFile string
return DialogResult

Property Details

ExceptionObj protected_oe property

The exception
protected Exception ExceptionObj
return Exception

_logFile protected_oe property

protected string _logFile
return string