C# Класс SDownload.Framework.CrashHandler

Handles error reporting
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddExtra ( String key, String value ) : void

Adds debug information to be sent with any crashes that occur in the future

ClearExtras ( ) : void

Wipes all debug information that was to be sent if a crash occured

SetUserIdentifier ( ) : void

Sets the User ID that accompanies any crashes

Throw ( String message, Exception inner, bool canReport = true ) : void

Reports an error to the user, and provides the option to report if the crash is critical enough

Throw ( String message, bool canReport = true ) : void

Reports an error to the user, and provides the option to report if the crash is critical enough

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

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

Adds debug information to be sent with any crashes that occur in the future
public static AddExtra ( String key, String value ) : void
key String Identifier for the debug information
value String The debug information to send
Результат void

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

Wipes all debug information that was to be sent if a crash occured
public static ClearExtras ( ) : void
Результат void

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

Sets the User ID that accompanies any crashes
public static SetUserIdentifier ( ) : void
Результат void

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

Reports an error to the user, and provides the option to report if the crash is critical enough
public static Throw ( String message, Exception inner, bool canReport = true ) : void
message String Message to show to the user
inner System.Exception The exception that was thrown/raised
canReport bool If the crash should be allowed to be reported to Bugsense
Результат void

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

Reports an error to the user, and provides the option to report if the crash is critical enough
public static Throw ( String message, bool canReport = true ) : void
message String The error message to show to the user
canReport bool If the crash should be allowed to be reported to Bugsense
Результат void