C# Class SDownload.Framework.CrashHandler

Handles error reporting
Afficher le fichier Open project: brkastner/SDownload Class Usage Examples

Méthodes publiques

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

Method Details

AddExtra() public static méthode

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

ClearExtras() public static méthode

Wipes all debug information that was to be sent if a crash occured
public static ClearExtras ( ) : void
Résultat void

SetUserIdentifier() public static méthode

Sets the User ID that accompanies any crashes
public static SetUserIdentifier ( ) : void
Résultat void

Throw() public static méthode

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

Throw() public static méthode

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