C# Класс AwbUpdater.ErrorHandler

This class provides helper functions for handling errors and displaying them to users
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CurrentPage string
CurrentRevision long
ListMakerText string

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

ErrorHandler ( ) : System

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

ErrorHandler() защищенный Метод

protected ErrorHandler ( ) : System
Результат System

HandleException() публичный статический Метод

Displays exception information. Should be called from try...catch handlers
public static HandleException ( Exception ex ) : void
ex System.Exception Exception object to handle
Результат void

MethodNames() публичный статический Метод

Returns names of functions in stack trace of an exception
public static MethodNames ( string stackTrace ) : string[]
stackTrace string Exception's StackTrace
Результат string[]

Thrower() публичный статический Метод

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
Результат string

Описание свойств

CurrentPage публичное статическое свойство

Title of the page currently being processed
public static string CurrentPage
Результат string

CurrentRevision публичное статическое свойство

Revision of the page currently being processed
public static long CurrentRevision
Результат long

ListMakerText публичное статическое свойство

Current text that the list is being made from in ListMaker
public static string ListMakerText
Результат string