COMException Handler Class
Definition
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[ComVisibleAttribute(false)]
public class COMExceptionHandler<ComVisibleAttribute(false)>
Public Class COMExceptionHandler- Inheritance
- Object COMExceptionHandler
Remarks
This class can be used when a COM-based CAPE-OPEN component returns a failure HRESULT. A failure HRESULT indicates an error condition has occurred. The ormats the .Net-bsed exception object and the COM-based CAPE-OPEN component to rethrow the COM-based error condition as a .Net-based exception using the wrapper class.
The CAPE-OPEN error handling process chose not to use the COM IErrorInfo API due to limitation of the Visual Basic programming language at the time that the error handling protocols were developed. Instead, the CAPE-OPEN error handling protocol requires that component in which the error occurs expose the appropriate error interfaces. In practice, this typically means that all CAPE-OPEN objects implement the , , and sometimes the error interfaces.
Constructors
Methods
| ExceptionForHRESULT | Creates and returns a new instance of the COMCapeOpenExceptionWrapper class. |
Extension Methods
| GetEnumNames | (Defined by General) |
| IsValidDouble | (Defined by General) |