Public Member Functions | Private Attributes | List of all members
rcdiscover::SocketException Class Reference

Exception representing an invalid socket operation. More...

#include <socket_exception.h>

Inheritance diagram for rcdiscover::SocketException:
Inheritance graph
[legend]

Public Member Functions

int get_error_code () const noexcept
 Returns error code. More...
 
 SocketException (const std::string &msg, int errnum)
 Constructor. More...
 
virtual const char * what () const noexceptoverride
 Returns error message. More...
 
virtual ~SocketException ()=default
 

Private Attributes

const int errnum_
 
const std::string msg_
 

Detailed Description

Exception representing an invalid socket operation.

Definition at line 47 of file socket_exception.h.

Constructor & Destructor Documentation

rcdiscover::SocketException::SocketException ( const std::string &  msg,
int  errnum 
)

Constructor.

Parameters
msgerror message
errnumerror code

Definition at line 41 of file socket_exception.cc.

virtual rcdiscover::SocketException::~SocketException ( )
virtualdefault

Member Function Documentation

int rcdiscover::SocketException::get_error_code ( ) const
noexcept

Returns error code.

Returns
error code

Definition at line 52 of file socket_exception.cc.

const char * rcdiscover::SocketException::what ( ) const
overridevirtualnoexcept

Returns error message.

Returns
error message

Definition at line 47 of file socket_exception.cc.

Member Data Documentation

const int rcdiscover::SocketException::errnum_
private

Definition at line 72 of file socket_exception.h.

const std::string rcdiscover::SocketException::msg_
private

Definition at line 73 of file socket_exception.h.


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


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Sun Apr 18 2021 02:16:32