src/Network/Error.cc
author nireco
Sat, 31 Jan 2009 15:21:57 +0200
changeset 445 94dfb47036ef
parent 423 947ab54de4b7
permissions -rw-r--r--
explosion animation

#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)
{ 

}