VideoTools
|
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events and timer events). More...
#include <geventhandler.h>
Public Member Functions | |
virtual void | onException (std::exception &)=0 |
Called by the event loop when an exception is thrown out of an event loop callback. More... | |
Protected Member Functions | |
virtual | ~EventExceptionHandler () |
Destructor. | |
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events and timer events).
If the handler just rethrows then the event loop will terminate.
Definition at line 44 of file geventhandler.h.
|
pure virtual |
Called by the event loop when an exception is thrown out of an event loop callback.
The implementation may just do a "throw" to throw the current exception out of the event loop, or a "delete this" for objects that manage themselves on the heap.
EventHandler objects or timer objects that are sub-objects of other EventHandler objects will normally have their implementation of onException() delegate to the outer object's onException().
Implemented in GNet::ServerPeer, GNet::Timer< T >, GNet::Timer< GNet::ServerPeer >, GNet::Timer< Gv::ImageOutput >, GNet::Timer< Gv::ImageInput >, GNet::Timer< GNet::Client >, GNet::Timer< Gv::CaptureTest >, GNet::Timer< Gv::HttpServerPeer >, GNet::Timer< Gv::ViewerInput >, GNet::Timer< Gv::HttpServerInput >, GNet::Timer< Gv::ViewerEventMixinImp >, GNet::Timer< GNet::HeapClient >, GNet::Timer< Gv::RtpServer >, GNet::Timer< GNet::SocketProtocolImp >, GNet::Timer< Gv::Camera >, GNet::Timer< GNet::SimpleClient >, and GNet::HeapClient.