42 std::runtime_error(msg),
44 msg_(msg +
" - " + std::to_string(errnum))
58 const std::string &msg,
int errnum) :
virtual const char * what() const noexceptoverride
Returns error message.
SocketException(const std::string &msg, int errnum)
Constructor.
Exception representing an invalid socket operation.
NetworkUnreachableException(const std::string &msg, int errnum)
Constructor.
int get_error_code() const noexcept
Returns error code.