C# Class StreamActions.ExceptionOut

Handles writing exceptions to standard error, and sending to the remote Exceptionless server, if enabled.
显示文件 Open project: StreamActions/StreamActions Class Usage Examples

Public Methods

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

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

WriteException() public static method

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