Update of /cvsroot/objecthandler/ObjectHandler/ohxl
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8866/ohxl
Modified Files:
conversions.cpp
Log Message:
more explit error message
Index: conversions.cpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/ohxl/conversions.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** conversions.cpp 14 Jun 2006 13:15:25 -0000 1.5
--- conversions.cpp 20 Jun 2006 18:26:41 -0000 1.6
***************
*** 184,188 ****
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar: " << e.what();
throw Exception(msg.str());
}
--- 184,188 ----
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar cannot coerce to long: " << e.what();
throw Exception(msg.str());
}
***************
*** 205,209 ****
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar: " << e.what();
throw Exception(msg.str());
}
--- 205,209 ----
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar cannot coerce to double: " << e.what();
throw Exception(msg.str());
}
***************
*** 226,230 ****
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar: " << e.what();
throw Exception(msg.str());
}
--- 226,230 ----
} catch (const std::exception &e) {
std::ostringstream msg;
! msg << "operToScalar cannot coerce to bool: " << e.what();
throw Exception(msg.str());
}
***************
*** 270,274 ****
Excel(xlFree, 0, 1, &xTemp);
std::ostringstream msg;
! msg << "operToScalar: " << e.what();
throw Exception(msg.str());
}
--- 270,274 ----
Excel(xlFree, 0, 1, &xTemp);
std::ostringstream msg;
! msg << "operToScalar cannot coerce to string: " << e.what();
throw Exception(msg.str());
}
***************
*** 292,296 ****
ret = value;
} else
! throw Exception("operToScalar: unexpected datatype");
}
--- 292,296 ----
ret = value;
} else
! throw Exception("operToScalar cannot coerce to boost::any: unexpected datatype");
}
|