src/Network/Error.cc
author terom
Tue, 16 Dec 2008 23:21:26 +0000
changeset 380 d193dd1d8a7e
child 381 9b35bc329d23
permissions -rw-r--r--
new NetworkReactor, fix everything to actually work

#include "Error.hh"

#include <cerrno>
#include <sstream>

std::string NetworkErrno::build_str (std::string op, int err) {
    std::stringstream ss;

    ss << op << ": " << strerror(errno);

    return ss.str();
}

NetworkErrno::NetworkErrno (std::string op) :
    Error(build_str(op, errno)), err(errno)
{ 

}