ErrorHandler Class

 

Provides methods for dealing with common COM error codes.

Namespace:   Microsoft.VisualStudio
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.ErrorHandler

public sealed class ErrorHandler

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCallWithCOMConvention(Action, Boolean)

Use this method when an interop interface might be implemented by managed code, and it is expected to return HRESULT error codes but also throws exceptions. This method catches all except the critical exceptions and returns the corresponding HRESULT for the caught exception.

System_CAPS_pubmethodSystem_CAPS_staticCallWithCOMConvention(Func<Int32>, Boolean)

System_CAPS_pubmethodSystem_CAPS_staticContainsCriticalException(AggregateException)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticExceptionToHResult(Exception, Boolean)

System_CAPS_pubmethodSystem_CAPS_staticFailed(Int32)

Determines whether an HRESULT is an error return code.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIsCriticalException(Exception)

Determines whether the specified exception is critical.

System_CAPS_pubmethodSystem_CAPS_staticIsRejectedRpcCall(Int32)

Determines whether the parameter is a failure HRESULT that indicates a failed RPC call that may succeed if retried at a later time.

System_CAPS_pubmethodSystem_CAPS_staticSucceeded(Int32)

Determines whether an HRESULT is a success return code.

System_CAPS_pubmethodSystem_CAPS_staticThrowOnFailure(Int32)

Determines whether the parameter is a success or failure HRESULT and throws an exception in case of failure.

System_CAPS_pubmethodSystem_CAPS_staticThrowOnFailure(Int32, Int32[])

Determines whether the parameter is a success or failure HRESULT and throws an exception if it is a failure that is not included in the array of well-known failures.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: