]> git.tdb.fi Git - libs/net.git/commit
Provide a signal to handle errors from Communicator
authorMikko Rasa <tdb@tdb.fi>
Mon, 6 Apr 2015 22:19:21 +0000 (01:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 6 Apr 2015 22:19:21 +0000 (01:19 +0300)
commita0b7f9bcf0654a7a3f24bac95746ac587b71986b
tree8d1be63a344ca0b569cc00aac6e8a1431e91e8e5
parent0165ed331051ae7fc64dfe85dd7ab8f5b11ba919
Provide a signal to handle errors from Communicator

Since Communicator is typically used with an EventDispatcher, it can be
inconvenient to just throw exceptions out.  Handling them would require
wrapping the EventDispatcher's tick call in a try block, and the exact
source of the exception would be lost.
source/net/communicator.cpp
source/net/communicator.h