Ticket #11 (closed defect: fixed)
COBIA error handling issues
Reported by: | jasper | Owned by: | jasper |
---|---|---|---|
Priority: | minor | Milestone: | Phase II |
Component: | COBIA core | Version: | 1.0 |
Keywords: | Cc: |
Description
COException COBIA objects raised by COMBIA are not properly handled by COBIA wrappers
Change History
Note: See
TracTickets for help on using
tickets.
Variant and other utility functions that raise a COException are within COMBIA adapter blocks. The COMBIA adapters do not know about COException, so catch it as std::exception. The what() member of COException was unimplemented (fixed), but this route requires conversion back and forth to UTF8 (as per what() signature). The proper solution is to raise COBIA::cape_open_error mostly everywhere (fixed), except when a COM error code is requried (not supported by cape_open_error), so for this reason COException is retained.
Fixes checked in as @105.
Fixes are included in new temporary development installer: https://www.amsterchem.com/temp/COBIA-bin-devel-0.0.3.3.exe