MLIB
|
Router for socket errors. More...
Public Member Functions | |
void | log (const erc &e) const override |
Output either the message text or message number if no text. | |
std::string | message (const erc &e) const override |
Return the error message text. | |
Public Member Functions inherited from mlib::errfac | |
errfac (const std::string &name="Error") | |
Set defaults for log and throw levels. | |
void | throw_priority (erc::level pri) |
set throw priority | |
erc::level | throw_priority () const |
get throw priority | |
void | log_priority (erc::level pri) |
set log priority | |
erc::level | log_priority () const |
get log priority | |
const std::string & | name () const |
get name | |
virtual void | raise (const erc &e) const |
Check if error must be logged or thrown. | |
Additional Inherited Members | |
Static Public Member Functions inherited from mlib::errfac | |
static void | Default (errfac *f) |
set default facility | |
static errfac & | Default () |
get default facility | |
Router for socket errors.
Converts from error number to error name.
|
overridevirtual |
Output either the message text or message number if no text.
Reimplemented from mlib::errfac.
|
overridevirtual |
Return the error message text.
Values from: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
Reimplemented from mlib::errfac.