aboutsummaryrefslogtreecommitdiff
path: root/ports/3fd/DataException.patch
blob: 106411cc0986804589f20e725a6aebb14c17af94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
diff --git a/3FD/broker_impl_reader.cpp b/3FD/broker_impl_reader.cpp
index 98bd68a..d5948b5 100644
--- a/3FD/broker_impl_reader.cpp
+++ b/3FD/broker_impl_reader.cpp
@@ -185,7 +185,7 @@ namespace broker
 
         core::Logger::Write(oss.str(), core::Logger::PRIO_INFORMATION);
     }
-    catch (Poco::Data::DataException &ex)
+    catch (Poco::DataException &ex)
     {
         CALL_STACK_TRACE;
         std::ostringstream oss;
@@ -264,7 +264,7 @@ namespace broker
 
             m_messages.reserve(msgCountStepLimit);
         }
-        catch (Poco::Data::DataException &ex)
+        catch (Poco::DataException &ex)
         {
             CALL_STACK_TRACE;
             std::ostringstream oss;
@@ -317,7 +317,7 @@ namespace broker
             {
                 core::Logger::Write(ex, core::Logger::PRIO_CRITICAL);
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to end transaction reading messages from broker queue. "
@@ -520,7 +520,7 @@ namespace broker
                 m_dbSession.rollback();
                 return true;
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to rollback transaction reading messages from broker queue. "
@@ -563,7 +563,7 @@ namespace broker
                 m_dbSession.commit();
                 return true;
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to commit transaction reading messages from broker queue. "
diff --git a/3FD/broker_impl_writer.cpp b/3FD/broker_impl_writer.cpp
index b237ba4..f9531c4 100644
--- a/3FD/broker_impl_writer.cpp
+++ b/3FD/broker_impl_writer.cpp
@@ -241,7 +241,7 @@ namespace broker
 
         core::Logger::Write(oss.str(), core::Logger::PRIO_INFORMATION);
     }
-    catch (Poco::Data::DataException &ex)
+    catch (Poco::DataException &ex)
     {
         CALL_STACK_TRACE;
         std::ostringstream oss;
@@ -348,7 +348,7 @@ namespace broker
             {
                 core::Logger::Write(ex, core::Logger::PRIO_CRITICAL);
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to end transaction writing messages into broker queue. "
@@ -405,7 +405,7 @@ namespace broker
             {
                 m_future->get();
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to write messages into broker queue. "
@@ -455,7 +455,7 @@ namespace broker
                 m_dbSession.rollback();
                 return true;
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to rollback transaction writing messages into broker queue. "
@@ -498,7 +498,7 @@ namespace broker
                 m_dbSession.commit();
                 return true;
             }
-            catch (Poco::Data::DataException &ex)
+            catch (Poco::DataException &ex)
             {
                 std::ostringstream oss;
                 oss << "Failed to commit transaction writing messages into broker queue. "
@@ -589,7 +589,7 @@ namespace broker
         {
             throw; // just forward exceptions from errors known to have been already handled
         }
-        catch (Poco::Data::DataException &ex)
+        catch (Poco::DataException &ex)
         {
             std::ostringstream oss;
             oss << "Failed to write messages into broker queue. "