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

Exception representing an invalid socket operation. More...

#include <socket_exception.h>

Inheritance diagram for rc::dynamics::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 45 of file socket_exception.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
msgerror message
errnumerror code

Definition at line 44 of file socket_exception.cc.

virtual rc::dynamics::SocketException::~SocketException ( )
virtualdefault

Member Function Documentation

int rc::dynamics::SocketException::get_error_code ( ) const
noexcept

Returns error code.

Returns
error code

Definition at line 54 of file socket_exception.cc.

const char * rc::dynamics::SocketException::what ( ) const
overridevirtualnoexcept

Returns error message.

Returns
error message

Definition at line 49 of file socket_exception.cc.

Member Data Documentation

const int rc::dynamics::SocketException::errnum_
private

Definition at line 70 of file socket_exception.h.

const std::string rc::dynamics::SocketException::msg_
private

Definition at line 71 of file socket_exception.h.


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


rc_dynamics_api
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Endres
autogenerated on Thu May 9 2019 02:51:36