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 noexcept override
 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

◆ SocketException()

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

Constructor.

Parameters
msgerror message
errnumerror code

Definition at line 43 of file socket_exception.cc.

◆ ~SocketException()

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

Member Function Documentation

◆ get_error_code()

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

Returns error code.

Returns
error code

Definition at line 54 of file socket_exception.cc.

◆ what()

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

Returns error message.

Returns
error message

Definition at line 49 of file socket_exception.cc.

Member Data Documentation

◆ errnum_

const int rcdiscover::SocketException::errnum_
private

Definition at line 72 of file socket_exception.h.

◆ msg_

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 Thu Aug 1 2024 02:55:56