Current error handling code in adapters reads
} catch (cape_open_error &ex) {
static_cast<BaseClass*>(static_cast<ClassName*>(me))->setErrorFromCapeOpenError(COBIATEXT("ICapeArrayBooleanParameter::Value"),ex);
resultCode=COBIAERR_CAPEOPENError;
} catch (std::exception &ex) {
COBIA_ASSERT(false,"unhandled std::exception");
cape_open_error ex1(ex);
static_cast<BaseClass*>(static_cast<ClassName*>(me))->setErrorFromCapeOpenError(COBIATEXT("ICapeArrayBooleanParameter::Value"),ex1);
resultCode=COBIAERR_CAPEOPENError;
} catch (...) {
resultCode=COBIAERR_UnknownError;
COBIA_ASSERT(false,"unhandled unknown exception");
}
catching the cape_open error should return the error code associated with the cape_open_error.