C# Класс _3PA.MainFeatures.ErrorHandler

Показать файл Открыть проект

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

Метод Описание
LogError ( Exception e, string message = null ) : bool

Log a piece of information returns false if the error already occured during the session, true otherwise

ShowErrors ( Exception e, string message = null ) : void

Shows an error to the user

ShowErrors ( Exception e, string message, string fileName ) : void

Shows a Messagebox informing the user that something went wrong with a file, renames said file with the suffix "_errors"

ThreadErrorHandler ( object sender, ThreadExceptionEventArgs e ) : void
UnhandledErrorHandler ( object sender, UnhandledExceptionEventArgs e ) : void
UnobservedErrorHandler ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void

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

Метод Описание
GetExceptionInfo ( Exception e ) : ExceptionInfo

Returns info on an exception

SendBugReport ( ExceptionInfo bugReport ) : void

Sends the given report to the web service of 3P

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

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

Log a piece of information returns false if the error already occured during the session, true otherwise
public static LogError ( Exception e, string message = null ) : bool
e System.Exception
message string
Результат bool

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

Shows an error to the user
public static ShowErrors ( Exception e, string message = null ) : void
e System.Exception
message string
Результат void

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

Shows a Messagebox informing the user that something went wrong with a file, renames said file with the suffix "_errors"
public static ShowErrors ( Exception e, string message, string fileName ) : void
e System.Exception
message string
fileName string
Результат void

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

public static ThreadErrorHandler ( object sender, ThreadExceptionEventArgs e ) : void
sender object
e System.Threading.ThreadExceptionEventArgs
Результат void

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

public static UnhandledErrorHandler ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
Результат void

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

public static UnobservedErrorHandler ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void
sender object
e System.Threading.Tasks.UnobservedTaskExceptionEventArgs
Результат void