diff options
author | randomdan <randomdan@localhost> | 2011-12-27 14:52:27 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-12-27 14:52:27 +0000 |
commit | 673d3ca9ebbb415817f20e077a770108c934fee7 (patch) | |
tree | 96f024bef38e793c2b8a37264c7c55684341fdd1 /project2/common/cache.cpp | |
parent | Fix cut point in fsRows since fixes to fsRoot were made (diff) | |
download | project2-673d3ca9ebbb415817f20e077a770108c934fee7.tar.bz2 project2-673d3ca9ebbb415817f20e077a770108c934fee7.tar.xz project2-673d3ca9ebbb415817f20e077a770108c934fee7.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.cpp | 9 |
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; |