terom@380: terom@380: #include "Error.hh" terom@380: terom@380: #include terom@380: #include terom@380: terom@380: std::string NetworkErrno::build_str (std::string op, int err) { terom@380: std::stringstream ss; terom@380: terom@380: ss << op << ": " << strerror(errno); terom@380: terom@380: return ss.str(); terom@380: } terom@380: terom@380: NetworkErrno::NetworkErrno (std::string op) : terom@380: Error(build_str(op, errno)), err(errno) terom@380: { terom@380: terom@380: } terom@380: