src/Network/Error.cc
author nireco
Thu, 29 Jan 2009 22:23:28 +0200
changeset 442 edde3a342102
parent 423 947ab54de4b7
permissions -rw-r--r--
couple of images about new worm

#include "Error.hh"
#include "Platform.hh"

#include <sstream>

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

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

    return ss.str();
}

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

}