C# Class SDownload.Framework.CrashHandler

Handles error reporting
Show file Open project: brkastner/SDownload Class Usage Examples

Public Methods

Method 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 method

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
return void

ClearExtras() public static method

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

SetUserIdentifier() public static method

Sets the User ID that accompanies any crashes
public static SetUserIdentifier ( ) : void
return void

Throw() public static method

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
return void

Throw() public static method

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
return void