summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-05 15:18:25 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-05 15:18:25 (GMT)
commit799ca6d265d7a362526d66e7f615f914695b867e (patch)
tree357afa5281dcfe72c7fee3e12c75505eca8dea1a /src/uscxml/plugins
parent83ef70ebc7527240f56e2e601777a613bce6e47e (diff)
downloaduscxml-799ca6d265d7a362526d66e7f615f914695b867e.zip
uscxml-799ca6d265d7a362526d66e7f615f914695b867e.tar.gz
uscxml-799ca6d265d7a362526d66e7f615f914695b867e.tar.bz2
Catch std::exception before ... and output e.what()
Diffstat (limited to 'src/uscxml/plugins')
-rw-r--r--src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp b/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp
index 00b47f4..9ba3e63 100644
--- a/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp
+++ b/src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp
@@ -162,6 +162,8 @@ void SCXMLIOProcessor::send(const SendRequest& req) {
} catch(Event e) {
// Is this the right thing to do?
_interpreter->receive(e);
+ } catch (const std::exception &e) {
+ LOG(ERROR) << "Exception caught while sending event to invoker " << invokeId << ": " << e.what();
} catch(...) {
LOG(ERROR) << "Exception caught while sending event to invoker " << invokeId;
}