version 1.12, 2004/07/23 23:08:57
|
version 1.13, 2004/08/19 12:58:43
|
|
|
cp.setValue(v); | cp.setValue(v); |
} | } |
catch (TypeMismatchException &e) { | catch (TypeMismatchException &e) { |
|
#ifdef PEGASUS_DEBUG |
cerr<<"-+- TypeMisMatch exception for: "<<name<<endl; | cerr<<"-+- TypeMisMatch exception for: "<<name<<endl; |
if (getenv("CMPI_CHECKTYPES")!=NULL) { | if (getenv("CMPI_CHECKTYPES")!=NULL) { |
cerr<<"-+- Aborting because of CMPI_CHECKTYPES"<<endl; | cerr<<"-+- Aborting because of CMPI_CHECKTYPES"<<endl; |
abort(); | abort(); |
} | } |
|
#endif |
CMReturn(CMPI_RC_ERR_TYPE_MISMATCH); | CMReturn(CMPI_RC_ERR_TYPE_MISMATCH); |
} | } |
catch (Exception &e) { | catch (Exception &e) { |
|
#ifdef PEGASUS_DEBUG |
cerr<<"-+- "<<e.getMessage()<<" exception for: "<<name<<endl; | cerr<<"-+- "<<e.getMessage()<<" exception for: "<<name<<endl; |
if (getenv("CMPI_CHECKTYPES")!=NULL) { | if (getenv("CMPI_CHECKTYPES")!=NULL) { |
cerr<<"-+- Aborting because of CMPI_CHECKTYPES"<<endl; | cerr<<"-+- Aborting because of CMPI_CHECKTYPES"<<endl; |
abort(); | abort(); |
} | } |
|
#endif |
CMReturnWithString(CMPI_RC_ERR_FAILED, | CMReturnWithString(CMPI_RC_ERR_FAILED, |
reinterpret_cast<CMPIString*>(new CMPI_Object(e.getMessage()))); | reinterpret_cast<CMPIString*>(new CMPI_Object(e.getMessage()))); |
} | } |