MLIB
Loading...
Searching...
No Matches
mlib::sock_facility Class Reference

Router for socket errors. More...

Inheritance diagram for mlib::sock_facility:
mlib::errfac

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 errfacDefault ()
 get default facility
 

Detailed Description

Router for socket errors.

Converts from error number to error name.

Member Function Documentation

◆ log()

void mlib::sock_facility::log ( const erc e) const
overridevirtual

Output either the message text or message number if no text.

Reimplemented from mlib::errfac.

◆ message()

std::string mlib::sock_facility::message ( const erc e) const
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.


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