68 const string& message,
bool show_errno) {
69 std::ostringstream message_stream;
74 message_stream << file <<
":" << line <<
": " << message;
76 if (show_errno) message_stream <<
" (" << std::strerror(errno) <<
")";
78 message_stream <<
"\n";
80 mesg = message_stream.str();
Contains libsocket elements.
socket_exception(const string &file, int line, const string &message, bool show_errno=true)
Constructor of a socket_exception object.
int err
This is the value of errno when the error occurred.