Update of /cvsroot/objecthandler/ObjectHandler/oh
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10484/oh
Modified Files:
objecthandler.hpp utilities.cpp
Log Message:
cache the last error message
Index: utilities.cpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/oh/utilities.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** utilities.cpp 9 Jun 2006 18:58:27 -0000 1.6
--- utilities.cpp 16 Jun 2006 16:15:36 -0000 1.7
***************
*** 45,48 ****
--- 45,49 ----
// so this function must not throw
try {
+ ObjectHandler::instance().setLastLogMessage(message);
Logger::instance().logMessage(message, level);
} catch (...) {}
Index: objecthandler.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/oh/objecthandler.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** objecthandler.hpp 11 Jun 2006 12:38:21 -0000 1.5
--- objecthandler.hpp 16 Jun 2006 16:15:36 -0000 1.6
***************
*** 99,106 ****
--- 99,114 ----
virtual const std::vector < std::string > listInstanceNames(
const std::string regex = "");
+
+ void setLastLogMessage(const std::string &message) {
+ lastLogMessage_ = message;
+ }
+ const std::string &lastLogMessage() {
+ return lastLogMessage_;
+ }
//@}
protected:
static ObjectHandler *instance_;
void checkName(const std::string &instanceName);
+ std::string lastLogMessage_;
};
|