C# Class AwbUpdater.ErrorHandler

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

Méthodes publiques

Свойство Type Description
CurrentPage string
CurrentRevision long
ListMakerText string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ErrorHandler ( ) : System

Private Methods

Méthode 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 méthode

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

ErrorHandler() protected méthode

protected ErrorHandler ( ) : System
Résultat System

HandleException() public static méthode

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

MethodNames() public static méthode

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

Thrower() public static méthode

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
Résultat string

Property Details

CurrentPage public_oe static_oe property

Title of the page currently being processed
public static string CurrentPage
Résultat string

CurrentRevision public_oe static_oe property

Revision of the page currently being processed
public static long CurrentRevision
Résultat long

ListMakerText public_oe static_oe property

Current text that the list is being made from in ListMaker
public static string ListMakerText
Résultat string