summaryrefslogtreecommitdiff
path: root/project2/common/cache.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-12-27 14:52:27 +0000
committerrandomdan <randomdan@localhost>2011-12-27 14:52:27 +0000
commitd3c6af11a145cee0fb28fa40c749c315e8f8c072 (patch)
tree96f024bef38e793c2b8a37264c7c55684341fdd1 /project2/common/cache.cpp
parentFix cut point in fsRows since fixes to fsRoot were made (diff)
downloadproject2-d3c6af11a145cee0fb28fa40c749c315e8f8c072.tar.bz2
project2-d3c6af11a145cee0fb28fa40c749c315e8f8c072.tar.xz
project2-d3c6af11a145cee0fb28fa40c749c315e8f8c072.zip
Add type safety to XML documents
Includes minor fixes around date serialisation and parsing
Diffstat (limited to 'project2/common/cache.cpp')
-rw-r--r--project2/common/cache.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/project2/common/cache.cpp b/project2/common/cache.cpp
index f5edc43..ff9f41f 100644
--- a/project2/common/cache.cpp
+++ b/project2/common/cache.cpp
@@ -4,6 +4,7 @@
#include "rowProcessor.h"
#include "logger.h"
#include <boost/foreach.hpp>
+#include <glibmm/exception.h>
Cache::Cache(ScriptNodePtr p) :
IHaveParameters(p),
@@ -21,8 +22,14 @@ bool Cache::checkAndExecute(const Glib::ustring & n, const Glib::ustring & f, co
cached->execute(f, rp);
return true;
}
+ catch (const Glib::Exception & e) {
+ Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what().c_str());
+ }
+ catch (const std::exception & e) {
+ Logger()->messagef(LOG_WARNING, "Cache failed (%s)", e.what());
+ }
catch (...) {
- Logger()->messagef(LOG_WARNING, "Cache failed");
+ Logger()->message(LOG_WARNING, "Cache failed");
}
}
return false;