Ticket #173 (closed defect: fixed)

Opened 23 months ago

Last modified 21 months ago

Mapping of system errors

Reported by: jasper Owned by: jasper
Priority: minor Milestone: Maintenance of Phase II
Component: COMBIA Version: 1.2.0.12
Keywords: Cc:

Description (last modified by michelpons) (diff)

COM errors map to CAPE-OPEN errors on the COBIA side. Similarly COBIA errors map to ECapeUser errors on the COM side.

Perhaps COM system errors, such as E_POINTER, E_FAIL, should map to COBIA system errors such as COBIAERR_CriticalError and COBIAERR_NullPointer.

In addition to this making sense, it also allows the CAPE-OPEN Test Suite to test that CAPE_OPEN errors are raised instead of system errors, where expected.

Change History

comment:1 Changed 21 months ago by jasper

The following errors are mapped between COBIA and COM as system errors:

		addMapping(COBIAERR_NoError,NOERROR);
		addMapping(COBIAERR_UnknownError,E_FAIL);
		addMapping(COBIAERR_InvalidArgument,E_INVALIDARG);
		addMapping(COBIAERR_NoSuchInterface,E_NOINTERFACE);
		addMapping(COBIAERR_Denied,E_ACCESSDENIED);
		addMapping(COBIAERR_NotImplemented,E_NOTIMPL);
		addMapping(COBIAERR_OutOfMemory,E_OUTOFMEMORY);
		addMapping(COBIAERR_CriticalError,E_UNEXPECTED);
		addMapping(COBIAERR_NullPointer,E_POINTER);


All remaining errors are mapped as CAPE-OPEN errors with the error string obtained from the system.

Last edited 21 months ago by michelpons (previous) (diff)

comment:2 Changed 21 months ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed

comment:4 Changed 21 months ago by michelpons

  • Description modified (diff)
Note: See TracTickets for help on using tickets.