C# Class Cimbalino.Phone.Toolkit.Helpers.LittleWatson

This object registers a raised exception information and allows the user to send the information thru e-mail.
Show file Open project: Cimbalino/Cimbalino-Phone-Toolkit

Public Methods

Method Description
CheckForPreviousException ( ) : void

Checks if a previous exception information was saved to isolated storage and if so, requests the user to send it by email.

Initialize ( string emailTo, string emailSubject ) : void

Initializes the LittleWatson.

Initialize ( string emailTo, string emailSubject, string sendRequestMessageBoxCaption, string sendRequestMessageBoxText ) : void

Initializes the LittleWatson.

ReportException ( Exception ex, string extra ) : void

Saves information regarding an exception to the isolated storage.

Private Methods

Method Description
SafeDeleteFile ( IsolatedStorageFile store ) : void

Method Details

CheckForPreviousException() public static method

Checks if a previous exception information was saved to isolated storage and if so, requests the user to send it by email.
public static CheckForPreviousException ( ) : void
return void

Initialize() public static method

Initializes the LittleWatson.
public static Initialize ( string emailTo, string emailSubject ) : void
emailTo string The recipient e-mail address.
emailSubject string The e-mail subject.
return void

Initialize() public static method

Initializes the LittleWatson.
public static Initialize ( string emailTo, string emailSubject, string sendRequestMessageBoxCaption, string sendRequestMessageBoxText ) : void
emailTo string The recipient e-mail address.
emailSubject string The e-mail subject.
sendRequestMessageBoxCaption string The caption of the message box requesting the user to send the information.
sendRequestMessageBoxText string The text of the message box requesting the user to send the information.
return void

ReportException() public static method

Saves information regarding an exception to the isolated storage.
public static ReportException ( Exception ex, string extra ) : void
ex System.Exception The exception that occurred.
extra string Extra data to save along with the exception information.
return void