summaryrefslogtreecommitdiff
path: root/project2/structExceptHandling.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-08-31 21:48:04 +0000
committerrandomdan <randomdan@localhost>2011-08-31 21:48:04 +0000
commit05b8bed896e5fe8c1841869e5d6e8e837e72c10a (patch)
tree77abf662b898321a61058fb0a0da603e336bcad9 /project2/structExceptHandling.cpp
parentAdds RDBMS table caching solution (diff)
downloadproject2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.tar.bz2
project2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.tar.xz
project2-05b8bed896e5fe8c1841869e5d6e8e837e72c10a.zip
The big reshuffle
Diffstat (limited to 'project2/structExceptHandling.cpp')
-rw-r--r--project2/structExceptHandling.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/project2/structExceptHandling.cpp b/project2/structExceptHandling.cpp
deleted file mode 100644
index f87b870..0000000
--- a/project2/structExceptHandling.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-#include "structExceptHandling.h"
-#include "xmlObjectLoader.h"
-#include "xmlStorage.h"
-#include <boost/foreach.hpp>
-
-DECLARE_LOADER("handler", StructuredExceptionHandler);
-
-static void
-loadHelper(const char * name, const xmlpp::Element * root, ANONORDEREDSTORAGEOF(NoOutputExecute) * noes)
-{
- LoaderBase loader(true);
- loader.supportedStorers.insert(Storer::into(noes));
- BOOST_FOREACH(const xmlpp::Node * node, root->find(name)) {
- const xmlpp::Element * elem = dynamic_cast<const xmlpp::Element *>(node);
- if (elem) {
- loader.collectAll(elem, true, ErrorOnUnsupported);
- }
- }
-}
-
-StructuredExceptionHandler::StructuredExceptionHandler(const xmlpp::Element * e) :
- SourceObject(e),
- IHaveSubTasks(e)
-{
- loadHelper("try", e, &normal);
- loadHelper("catch", e, &catches);
- loadHelper("finally", e, &finallies);
-}
-
-void
-StructuredExceptionHandler::loadComplete(const CommonObjects * co)
-{
- IHaveSubTasks::loadComplete(co);
-}
-
-void
-StructuredExceptionHandler::execute() const
-{
- try {
- run(normal);
- }
- catch (...) {
- try {
- run(catches);
- }
- catch (...) {
- }
- run(finallies);
- throw;
- }
- run(finallies);
-}
-