Exception representing an invalid socket operation. More...
#include <socket_exception.h>
Public Member Functions | |
int | get_error_code () const noexcept |
Returns error code. | |
SocketException (const std::string &msg, int errnum) | |
Constructor. | |
virtual const char * | what () const noexcept override |
Returns error message. | |
virtual | ~SocketException () |
Private Attributes | |
const int | errnum_ |
const std::string | msg_ |
Exception representing an invalid socket operation.
Definition at line 46 of file socket_exception.h.
rc::dynamics::SocketException::SocketException | ( | const std::string & | msg, |
int | errnum | ||
) |
Constructor.
msg | error message |
errnum | error code |
Definition at line 43 of file socket_exception.cc.
virtual rc::dynamics::SocketException::~SocketException | ( | ) | [virtual] |
int rc::dynamics::SocketException::get_error_code | ( | ) | const |
const char * rc::dynamics::SocketException::what | ( | ) | const [override, virtual] |
const int rc::dynamics::SocketException::errnum_ [private] |
Definition at line 72 of file socket_exception.h.
const std::string rc::dynamics::SocketException::msg_ [private] |
Definition at line 73 of file socket_exception.h.