E-MailRelay
|
An GNet::ExceptionHandler that rethrows. More...
Public Member Functions | |
void | onException (GNet::ExceptionSource *, std::exception &, bool) override |
Called by the event loop when an exception is thrown out of an event loop callback. More... | |
![]() | |
virtual | ~ExceptionHandler () |
Destructor. More... | |
virtual void | onException (ExceptionSource *source, std::exception &e, bool done)=0 |
Called by the event loop when an exception is thrown out of an event loop callback. More... | |
ExceptionHandler (const ExceptionHandler &)=delete | |
ExceptionHandler (ExceptionHandler &&)=delete | |
void | operator= (const ExceptionHandler &)=delete |
void | operator= (ExceptionHandler &&)=delete |
An GNet::ExceptionHandler that rethrows.
Definition at line 31 of file gexceptionsink.cpp.
|
inlineoverridevirtual |
Called by the event loop when an exception is thrown out of an event loop callback.
The exception is still active so it can be rethrown with "throw".
The source parameter can be used to point to the object that received the original event loop callback. This requires the appropriate exception source pointer is defined when the event source is first registered with the event loop, otherwise it defaults to a null pointer. (The ExceptionSinkUnbound class is used where necessary to encourage the definition of a valid exception source pointer.)
The 'done' parameter indicates whether the exception was of type GNet::Done.
Implements GNet::ExceptionHandler.
Definition at line 33 of file gexceptionsink.cpp.