C# Класс StreamActions.ExceptionOut

Handles writing exceptions to standard error, and sending to the remote Exceptionless server, if enabled.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

SendException() публичный статический Метод

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.
Результат void

WriteException() публичный статический Метод

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.
Результат void