Compartilhar via


IExtensionErrorHandler2 Interface

Definition

Allows editor hosts to detect exceptions that get captured at extension points.

public interface class IExtensionErrorHandler2 : Microsoft::VisualStudio::Text::IExtensionErrorHandler
public interface IExtensionErrorHandler2 : Microsoft.VisualStudio.Text.IExtensionErrorHandler
type IExtensionErrorHandler2 = interface
    interface IExtensionErrorHandler
Public Interface IExtensionErrorHandler2
Implements IExtensionErrorHandler
Implements

Remarks

This is a MEF component part, and should be imported as follows: [Import] IExtensionErrorHandler2 errorHandler = null;

Methods

HandleError(Object, Exception)

Logs an exception to ActivityLogs and the telemetry, and notifies that an exception has occured.

(Inherited from IExtensionErrorHandler)
LogError(Object, Exception)

Logs an exception to ActivityLogs and the telemetry.

Applies to