diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-05 15:18:25 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-05 15:18:25 (GMT) |
commit | 799ca6d265d7a362526d66e7f615f914695b867e (patch) | |
tree | 357afa5281dcfe72c7fee3e12c75505eca8dea1a /src/uscxml/plugins/ioprocessor | |
parent | 83ef70ebc7527240f56e2e601777a613bce6e47e (diff) | |
download | uscxml-799ca6d265d7a362526d66e7f615f914695b867e.zip uscxml-799ca6d265d7a362526d66e7f615f914695b867e.tar.gz uscxml-799ca6d265d7a362526d66e7f615f914695b867e.tar.bz2 |
Catch std::exception before ... and output e.what()
Diffstat (limited to 'src/uscxml/plugins/ioprocessor')
-rw-r--r-- | src/uscxml/plugins/ioprocessor/scxml/SCXMLIOProcessor.cpp | 2 |
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; } |