C# Class StreamActions.ExceptionOut

Handles writing exceptions to standard error, and sending to the remote Exceptionless server, if enabled.
Afficher le fichier Open project: StreamActions/StreamActions Class Usage Examples

Méthodes publiques

Méthode Description
SendException ( Exception e, object data ) : void

Sends the exception to the remote Exceptionless server, if enabled.

WriteException ( string niceDescription, Exception e, object data, bool sendException = true ) : void

Writes the exception to standard error and sends it to the remote Exceptionless server, according to the settings.

Method Details

SendException() public static méthode

Sends the exception to the remote Exceptionless server, if enabled.
public static SendException ( Exception e, object data ) : void
e Exception The exception that was thrown.
data object Any extra data that needs to be sent to the remote Exceptionless server.
Résultat void

WriteException() public static méthode

Writes the exception to standard error and sends it to the remote Exceptionless server, according to the settings.
public static WriteException ( string niceDescription, Exception e, object data, bool sendException = true ) : void
niceDescription string The description printed to the console if debug mode is turned off.
e Exception The exception that was thrown.
data object Any extra data that needs to be sent to the remote Exceptionless server.
sendException bool Whether to send the exception to Exceptionless, if enabled.
Résultat void