VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::EventExceptionHandler Class Referenceabstract

An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events and timer events). More...

#include <geventhandler.h>

+ Inheritance diagram for GNet::EventExceptionHandler:

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.
 

Detailed Description

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.

Member Function Documentation

virtual void GNet::EventExceptionHandler::onException ( std::exception &  )
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.


The documentation for this class was generated from the following files: