Share via


DataCollectionLogger.LogError Method

Definition

Overloads

LogError(DataCollectionContext, Exception)

Logs an error message for an exception.

LogError(DataCollectionContext, String)

Logs an error message.

LogError(DataCollectionContext, String, Exception)

Logs an error message for an exception.

LogError(DataCollectionContext, Exception)

Logs an error message for an exception.

public:
 void LogError(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, Exception ^ exception);
public void LogError (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, Exception exception);
member this.LogError : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * Exception -> unit
Public Sub LogError (context As DataCollectionContext, exception As Exception)

Parameters

context
DataCollectionContext

The DataCollectionContext in which the message is sent.

exception
Exception

The exception. Cannot be null.

Applies to

LogError(DataCollectionContext, String)

Logs an error message.

public:
 abstract void LogError(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::String ^ text);
public abstract void LogError (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, string text);
abstract member LogError : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * string -> unit
Public MustOverride Sub LogError (context As DataCollectionContext, text As String)

Parameters

context
DataCollectionContext

The DataCollectionContext in which the message is sent.

text
String

The error text. Cannot be null.

Applies to

LogError(DataCollectionContext, String, Exception)

Logs an error message for an exception.

public:
 abstract void LogError(Microsoft::VisualStudio::TestTools::Execution::DataCollectionContext ^ context, System::String ^ text, Exception ^ exception);
public abstract void LogError (Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext context, string text, Exception exception);
abstract member LogError : Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext * string * Exception -> unit
Public MustOverride Sub LogError (context As DataCollectionContext, text As String, exception As Exception)

Parameters

context
DataCollectionContext

The DataCollectionContext in which the message is sent.

text
String

Text that explains the exception. Cannot be null.

exception
Exception

The exception. Cannot be null.

Applies to