C# Class Support.ExceptionHandler

Implements exception information logging.
Afficher le fichier Open project: sgrebnov/IeMobileDebugger

Méthodes publiques

Méthode Description
Log ( Exception ex ) : void

Saves exception occurred to log.

Log ( string message ) : void

Saves string message to log

LogAndNotify ( Exception ex ) : void

Saves exception occurred to log and then shows exception message to user.

LogAndNotify ( string message ) : void

Saves string message to log and then shows message to user

Private Methods

Méthode Description
DataToFile ( string data ) : void

Implements logic to save some data to log file. If logging fails then it saves exception to event log (Application section).

ExceptionHandler ( ) : System

Initializes static members of the ExceptionHandler class.

Method Details

Log() public static méthode

Saves exception occurred to log.
public static Log ( Exception ex ) : void
ex System.Exception Exception to save information about
Résultat void

Log() public static méthode

Saves string message to log
public static Log ( string message ) : void
message string Message to put into log
Résultat void

LogAndNotify() public static méthode

Saves exception occurred to log and then shows exception message to user.
public static LogAndNotify ( Exception ex ) : void
ex System.Exception Exception to save information about
Résultat void

LogAndNotify() public static méthode

Saves string message to log and then shows message to user
public static LogAndNotify ( string message ) : void
message string Message to put into log
Résultat void