Cape Error Interface HR Enumeration
Definition
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[SerializableAttribute]
public enum CapeErrorInterfaceHR<SerializableAttribute>
Public Enumeration CapeErrorInterfaceHRRemarks
Extracted from "Strategies for Handling Errors in COM+", in Platform SDK help
Use the FACILITY_ITF range of errors to report interface-specific errors.
Interface-specific errors should be in the FACILITY_ITF range of errors,between 0x0200 and 0xFFFF. However, since Microsoft uses some codes after 0x0200, the CAPE-OPEN error codes will start at 0x0500
Use the MAKE_HRESULT macro in C++ to introduce an interface-specific error code, as shown in the following example:
const HRESULT ERROR_NUMBER = MAKE_HRESULT (SEVERITY_ERROR, FACILITY_ITF,10);
So, offset on FIRST_E_INTERFACE_HR must be between 1 and 64255 (0xFFFF-0x0500). We reserve the 0 offset.
const int FIRST_E_INTERFACE_HR = (int)0x80040500;
last HR value used for a CO error interface const int LAST_USED_E_INTERFACE_HR = (int)0x80040517;
highest HR value that could be used to represent a CO error interface const int LAST_E_INTERFACE_HR = (int)0x8004FFFF;
Members
| ECapeThrmPropertyNotAvailableHR | -2,147,220,192 | 0x80040519, Specific to MINLP |
| ECapeHessianInfoNotAvailableHR | -2,147,220,199 | 0x80040519, Specific to MINLP |
| ECapeOutsideSolverScopeHR | -2,147,220,200 | 0x80040518, Specific to MINLP |
| ECapePersistenceOverflowHR | -2,147,220,201 | 0x80040517 |
| ECapePersistenceSystemErrorHR | -2,147,220,202 | 0x80040516 |
| ECapePersistenceNotFoundHR | -2,147,220,203 | 0x80040515 |
| ECapeIllegalAccessHR | -2,147,220,204 | 0x80040514 |
| ECapePersistenceHR | -2,147,220,205 | 0x80040513 |
| ECapeInvalidOperationHR | -2,147,220,206 | 0x80040512 |
| ECapeBadInvOrderHR | -2,147,220,207 | 0x80040511 |
| ECapeSolvingErrorHR | -2,147,220,208 | 0x80040510 |
| ECapeFailedInitialisationHR | -2,147,220,209 | 0x8004050F |
| ECapeTimeOutHR | -2,147,220,210 | 0x8004050E |
| ECapeNoMemoryHR | -2,147,220,211 | 0x8004050D |
| ECapeOutOfResourcesHR | -2,147,220,212 | 0x8004050C |
| ECapeComputationHR | -2,147,220,213 | 0x8004050B |
| ECapeLimitedImplHR | -2,147,220,214 | 0x8004050A |
| ECapeNoImplHR | -2,147,220,215 | 0x80040509 |
| ECapeImplementationHR | -2,147,220,216 | 0x80040508 |
| ECapeOutOfBoundsHR | -2,147,220,217 | 0x80040507 |
| ECapeInvalidArgumentHR | -2,147,220,218 | 0x80040506 |
| ECapeBadArgumentHR | -2,147,220,219 | 0x80040505 |
| ECapeBadCOParameterHR | -2,147,220,220 | 0x80040504 |
| ECapeLicenceErrorHR | -2,147,220,221 | 0x80040503 |
| ECapeDataHR | -2,147,220,222 | 0x80040502 |
| ECapeUnknownHR | -2,147,220,223 | 0x80040501 |