C# Class AwbUpdater.ErrorHandler

This class provides helper functions for handling errors and displaying them to users
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: reedy/AutoWikiBrowser Class Usage Examples

Public Properties

Property Type Description
CurrentPage string
CurrentRevision long
ListMakerText string

Public Methods

Method Description
HandleException ( Exception ex ) : void

Displays exception information. Should be called from try...catch handlers

MethodNames ( string stackTrace ) : string[]

Returns names of functions in stack trace of an exception

Thrower ( Exception ex ) : string

Returns the name of our function where supposedly error resides; it's the last non-framework function in the stack

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ErrorHandler ( ) : System

Private Methods

Method Description
ErrorHandler_Load ( object sender, EventArgs e ) : void
HandleKnownExceptions ( Exception ex ) : bool
InitializeComponent ( ) : void

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

btnCopy_Click ( object sender, EventArgs e ) : void
linkLabel1_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

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

ErrorHandler() protected method

protected ErrorHandler ( ) : System
return System

HandleException() public static method

Displays exception information. Should be called from try...catch handlers
public static HandleException ( Exception ex ) : void
ex System.Exception Exception object to handle
return void

MethodNames() public static method

Returns names of functions in stack trace of an exception
public static MethodNames ( string stackTrace ) : string[]
stackTrace string Exception's StackTrace
return string[]

Thrower() public static method

Returns the name of our function where supposedly error resides; it's the last non-framework function in the stack
public static Thrower ( Exception ex ) : string
ex System.Exception Exception to process
return string

Property Details

CurrentPage public_oe static_oe property

Title of the page currently being processed
public static string CurrentPage
return string

CurrentRevision public_oe static_oe property

Revision of the page currently being processed
public static long CurrentRevision
return long

ListMakerText public_oe static_oe property

Current text that the list is being made from in ListMaker
public static string ListMakerText
return string