E-MailRelay
|
A mixin base class that identifies the source of an exception when delivered to GNet::ExceptionHandler and optionally provides an indentifier for logging purposes. More...
#include <gexceptionsource.h>
Public Member Functions | |
virtual std::string | exceptionSourceId () const |
Returns an identifying string for logging purposes, or the empty string. More... | |
virtual | ~ExceptionSource () |
Destructor. More... | |
ExceptionSource (const ExceptionSource &)=delete | |
ExceptionSource (ExceptionSource &&)=delete | |
void | operator= (const ExceptionSource &)=delete |
void | operator= (ExceptionSource &&)=delete |
A mixin base class that identifies the source of an exception when delivered to GNet::ExceptionHandler and optionally provides an indentifier for logging purposes.
The primary motivation is to allow a Server to manage its ServerPeer list when one of them throws an exception.
Definition at line 39 of file gexceptionsource.h.
|
virtual |
Destructor.
Definition at line 30 of file gexceptionsource.cpp.
|
virtual |
Returns an identifying string for logging purposes, or the empty string.
This typically provides the remote peer's network address.
Definition at line 25 of file gexceptionsource.cpp.