aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-09-12 17:11:03 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-09-12 17:11:03 +0200
commit0efe514cc7b788e6009df4b520c076c9931939fb (patch)
treefaec214da753f9c156f36f822ac8712b692f56dc /src
parent640595f37fb58cdfe96731a5d993344bcdabcad0 (diff)
downloaddabmod-0efe514cc7b788e6009df4b520c076c9931939fb.tar.gz
dabmod-0efe514cc7b788e6009df4b520c076c9931939fb.tar.bz2
dabmod-0efe514cc7b788e6009df4b520c076c9931939fb.zip
Catch unknown exceptions in DPD server
Diffstat (limited to 'src')
-rw-r--r--src/OutputUHDFeedback.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/OutputUHDFeedback.cpp b/src/OutputUHDFeedback.cpp
index 22fa7eb..b370885 100644
--- a/src/OutputUHDFeedback.cpp
+++ b/src/OutputUHDFeedback.cpp
@@ -378,8 +378,14 @@ void OutputUHDFeedback::ServeFeedbackThread()
try {
ServeFeedback();
}
- catch (runtime_error &e) {
- etiLog.level(error) << "DPD Feedback Server fault: " << e.what();
+ catch (const runtime_error &e) {
+ etiLog.level(error) << "DPD Feedback Server runtime error: " << e.what();
+ }
+ catch (const std::exception &e) {
+ etiLog.level(error) << "DPD Feedback Server exception: " << e.what();
+ }
+ catch (...) {
+ etiLog.level(error) << "DPD Feedback Server unknown exception!";
}
boost::this_thread::sleep(boost::posix_time::seconds(5));