ErrorHandler Class
Provides methods for dealing with common COM error codes.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.ErrorHandler
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaración
Public NotInheritable Class ErrorHandler
public sealed class ErrorHandler
The ErrorHandler type exposes the following members.
Methods
Name | Description | |
---|---|---|
CallWithCOMConvention(Action, Boolean) | ||
CallWithCOMConvention(Int32}, Boolean) | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Failed | Determines whether an HRESULT is an error return code. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsCriticalException | Determines whether the specified exception is critical. | |
IsRejectedRpcCall | ||
Succeeded | Determines whether an HRESULT is a success return code. | |
ThrowOnFailure(Int32) | Determines whether the parameter is a success or failure HRESULT and throws an exception in case of failure. | |
ThrowOnFailure(Int32, array<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. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio Namespace